mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix netstats-ip
git-svn-id: http://www.observium.org/svn/observer/trunk@3006 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -38,6 +38,9 @@ if ($device['os'] != "Snom")
|
||||
$rrdupdate .= ":$value";
|
||||
}
|
||||
|
||||
print_r($data);
|
||||
|
||||
|
||||
if (isset($data[0]['ipOutRequests']) && isset($data[0]['ipInReceives']))
|
||||
{
|
||||
if (!file_exists($rrd_file)) { rrdtool_create($rrd_file, $rrd_create); }
|
||||
|
||||
@@ -14,6 +14,8 @@ function snmp_get_multi($device, $oids, $options = "-OQUs", $mib = NULL, $mibdir
|
||||
{
|
||||
global $debug,$config,$runtime_stats,$mibs_loaded;
|
||||
|
||||
if(!$options) { $options = "-OQUs"; }
|
||||
|
||||
if (is_numeric($device['timeout']) && $device['timeout'] > 0)
|
||||
{
|
||||
$timeout = $device['timeout'];
|
||||
|
||||
Reference in New Issue
Block a user