Added power and temperature sensors for Extreme hardware (xos). I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

This commit is contained in:
Rasmus Aberg
2015-07-20 11:01:30 +02:00
parent 0b880bff71
commit a97160b94f
3 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ $value = snmp_get($device, $oid, '-Oqv', 'EXTREME-BASE-MIB');
$divisor = "1000";
$value = ($value / $divisor); // Nasty hack to divide the first value by 1000 since the divisor only works for polling after the sensor has been added
if (is_numeric($value) && $value > 0) {
discover_sensor($valid['sensor'], 'power', $device, $oid, '1', 'extreme-power', $descr, $divisor, 1, null, null, null, null, $value); // No limits have been specified since all equipment is different and will use different amount of Watts
if (is_numeric($value)) {
discover_sensor($valid['sensor'], 'power', $device, $oid, '1', 'extreme-power', $descr, $divisor, 1, null, null, null, null, $value); // No limits have been specified since all equipment is different and will use different amount of Watts
}
// EOF