Added support for APC OutputLoad

This commit is contained in:
laf
2015-04-11 19:47:56 +01:00
parent c15b764d2c
commit ce4bfe5062
2 changed files with 11 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ function poll_sensor($device, $class, $unit)
sleep(1); # Give the TME some time to reset
}
} else {
$tmp_mib = 'SNMPv2-MIB';
if ($sensor['sensor_type'] == 'apc') {
$tmp_mib .= ':PowerNet-MIB';
}
$sensor_value = trim(str_replace("\"", "", snmp_get($device, $sensor['sensor_oid'], "-OUqnv", "SNMPv2-MIB")));
}
} else if ($sensor['poller_type'] == "agent")