mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes to netstat poller (fixes issue on debian where MIBs aren't automatically loaded)
git-svn-id: http://www.observium.org/svn/observer/trunk@2445 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -25,7 +25,7 @@ if ($device['os'] != "Snom")
|
||||
$snmpstring .= " $oid.0";
|
||||
}
|
||||
|
||||
$data_array = snmpwalk_cache_oid($device, "IP-MIB::icmp", array());
|
||||
$data_array = snmpwalk_cache_oid($device, "icmp", array(), "IP-MIB");
|
||||
|
||||
$rrdupdate = "N";
|
||||
|
||||
|
@@ -20,7 +20,7 @@ if ($device['os'] != "Snom")
|
||||
{
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_create .= " DS:$oid_ds:COUNTER:600:U:100000000000";
|
||||
$snmpstring .= " $oid.0";
|
||||
$snmpstring .= " IP-MIB::".$oid.".0";
|
||||
}
|
||||
|
||||
$data = snmp_get_multi($device, $snmpstring);
|
||||
@@ -50,4 +50,4 @@ if ($device['os'] != "Snom")
|
||||
|
||||
unset($oids, $data, $data_array, $oid);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@@ -23,7 +23,7 @@ if ($device['os'] != "Snom")
|
||||
$rrd_create .= " DS:$oid_ds:COUNTER:600:U:100000000000";
|
||||
}
|
||||
|
||||
$data_array = snmpwalk_cache_oid($device, "SNMPv2-MIB::snmp", array());
|
||||
$data_array = snmpwalk_cache_oid($device, "snmp", array(), "SNMPv2-MIB");
|
||||
|
||||
$rrdupdate = "N";
|
||||
|
||||
|
@@ -21,7 +21,7 @@ if ($device['os'] != "Snom")
|
||||
{
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_create .= " DS:$oid_ds:COUNTER:600:U:10000000"; ## Limit to 10MPPS
|
||||
$snmpstring .= " $oid.0";
|
||||
$snmpstring .= " TCP-MIB::".$oid.".0";
|
||||
}
|
||||
|
||||
$snmpstring .= " tcpHCInSegs.0";
|
||||
@@ -54,4 +54,4 @@ if ($device['os'] != "Snom")
|
||||
unset($oids, $data, $data_array, $oid, $protos);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@@ -19,7 +19,7 @@ if ($device['os'] != "Snom")
|
||||
{
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_create .= " DS:$oid_ds:COUNTER:600:U:1000000"; ## Limit to 1MPPS?
|
||||
$snmpstring .= " $oid.0";
|
||||
$snmpstring .= " UDP-MIB::".$oid.".0";
|
||||
}
|
||||
|
||||
$data = snmp_get_multi($device, $snmpstring);
|
||||
@@ -47,4 +47,4 @@ if ($device['os'] != "Snom")
|
||||
|
||||
unset($oids, $data, $data_array, $oid, $protos, $snmpstring);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user