mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated hpilo temp discovery to test for current value
This commit is contained in:
@ -21,7 +21,9 @@
|
||||
$threshold_oid = "1.3.6.1.4.1.232.6.2.6.8.1.5.$temperature_id";
|
||||
$threshold = snmp_get($device,$threshold_oid,"-Oqv","");
|
||||
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $temperature_oid, $oid, 'hpilo', $descr, '1', '1', NULL, NULL, NULL, $threshold, $temperature);
|
||||
if (!empty($temperature)) {
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $temperature_oid, $oid, 'hpilo', $descr, '1', '1', NULL, NULL, NULL, $threshold, $temperature);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user