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:
Tom Laermans
2011-03-17 14:27:40 +00:00
parent 7604734ec1
commit 7e1c7a5bdc
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -159,5 +159,4 @@ while ($interface = mysql_fetch_array($interface_query)) {
unset($portifIndex);
?>
?>
+1 -1
View File
@@ -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"; }