mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 16:26:55 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user