mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +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:
parent
6b68d5fce9
commit
4da272f451
@ -15,5 +15,5 @@ foreach (array_keys($oids) as $index) {
|
|||||||
$current = $cur_oid[$index]['tempSensorValue'];
|
$current = $cur_oid[$index]['tempSensorValue'];
|
||||||
$oid = $cur_oid.$index;
|
$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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user