add netvision battery voltage, patch by devolish

git-svn-id: http://www.observium.org/svn/observer/trunk@1914 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-17 16:20:41 +00:00
parent 302648afbc
commit 2f3e8fb2f9

View File

@ -4,6 +4,19 @@ global $valid_sensor;
if ($device['os'] == "netvision")
{
// Battery voltage
$volt_oid = "1.3.6.1.4.1.4555.1.1.1.1.2.5.0";
$descr = "Battery";
$volt = snmp_get($device, $volt_oid, "-Oqv");
$type = "netvision";
$divisor = 10;
$index = 200;
$lowlimit = 0;
$limit = NULL;
discover_sensor($valid_sensor, 'voltage', $device, $volt_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $volt);
for($i = 1; $i <= 3 ;$i++)
{
$volt_oid = "1.3.6.1.4.1.4555.1.1.1.1.3.3.1.2.$i";