mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
last cleanup commit for now, yay
git-svn-id: http://www.observium.org/svn/observer/trunk@1910 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -159,5 +159,4 @@ while ($interface = mysql_fetch_array($interface_query)) {
|
||||
|
||||
unset($portifIndex);
|
||||
|
||||
?>
|
||||
|
||||
?>
|
||||
@@ -125,7 +125,7 @@ function snmp_get($device, $oid, $options = NULL, $mib = NULL, $mibdir = NULL)
|
||||
if ($device['snmpver'] == "v2c")
|
||||
{
|
||||
$data = @snmp2_get($device['hostname'].":".$device['port'], $device['community'], $oid, $timeout, $retries);
|
||||
} elseif ( $device['snmpver'] == "v1") {
|
||||
} elseif ($device['snmpver'] == "v1") {
|
||||
$data = @snmpget($device['hostname'].":".$device['port'], $device['community'], $oid, $timeout, $retries);
|
||||
}
|
||||
if ($debug) { print "DEBUG: $oid: $data\nDEBUG: cmd: ".$device['transport'].":".$device['hostname'].":".$device['port']." ".$device['community']." ".$oid." ".$timeout." ".$retries."\n"; }
|
||||
|
||||
Reference in New Issue
Block a user