mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix sensor limit linked port rules in collection(#14520)
Escape the sensor_limit properly
This commit is contained in:
@ -198,11 +198,11 @@
|
||||
"name": "HP Procurve Fan Fault"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current > sensors.sensor_limit && sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && macros.sensor_port_link = \"1\"",
|
||||
"rule": "sensors.sensor_current > `sensors.sensor_limit` && sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && macros.sensor_port_link = \"1\"",
|
||||
"name": "Sensor over limit with linked port"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current < sensors.sensor_limit_low && sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && macros.sensor_port_link = \"1\"",
|
||||
"rule": "sensors.sensor_current < `sensors.sensor_limit_low` && sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && macros.sensor_port_link = \"1\"",
|
||||
"name": "Sensor under limit with linked port"
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user