changes since changes began

git-svn-id: http://www.observium.org/svn/observer/trunk@1403 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-18 08:20:30 +00:00
parent c71ed3d6cc
commit 60ea70fe57
6 changed files with 31 additions and 6 deletions
@@ -26,8 +26,11 @@ if ($device['os'] == "ios" || $device['os_group'] == "ios")
$descr = snmp_get($device, "entPhysicalDescr.".$index, "-Oqv", "ENTITY-MIB");
$oid = ".1.3.6.1.4.1.9.9.91.1.1.1.1.4.".$index;
$current = $entry['entSensorValue'];
if($entry['entSensorScale'] == "milli") { $divisor = "1000"; } else { $divisor = "1"; }
discover_temperature($valid_temp, $device, $oid, $index, "cisco-entity-sensor", $descr, "1", NULL, NULL, $current);
discover_temperature($valid_temp, $device, $oid, $index, "cisco-entity-sensor", $descr, $divisor, NULL, NULL, $current);
}
}
}