mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sane default temperature limits for Axis cameras (#8371)
Default behaviour is to set low limit to (current temperature - 10 deg) and high limit to (current temperature + 20 deg) upon discovery. Changing that to abs values +5 and +35 deg respectively to be in realistic boundaries.
This commit is contained in:
@ -15,5 +15,5 @@ foreach (array_keys($oids) as $index) {
|
||||
$current = $cur_oid[$index]['tempSensorValue'];
|
||||
$oid = $cur_oid.$index;
|
||||
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'axiscam', 'Temperature Sensor '.$index, '1', '1', '', '', '', '', $current);
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'axiscam', 'Temperature Sensor '.$index, '1', '1', '5', '10', '30', '35', $current);
|
||||
}
|
||||
|
Reference in New Issue
Block a user