mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed alert rules that use columns in value (#8925)
DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
@@ -34,12 +34,12 @@
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current > sensors.sensor_limit && sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"rule": "sensors.sensor_current > `sensors.sensor_limit` && sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"name": "Sensor over limit - Check Device Health Settings",
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current < sensors.sensor_limit_low && sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"rule": "sensors.sensor_current < `sensors.sensor_limit_low` && sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"name": "Sensor under limit - Check Device Health Settings",
|
||||
"default": true
|
||||
},
|
||||
@@ -49,12 +49,12 @@
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"rule": "wireless_sensors.sensor_current >= wireless_sensors.sensor_limit && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"rule": "wireless_sensors.sensor_current >= `wireless_sensors.sensor_limit` && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"name": "Wireless Sensor over limit",
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"rule": "wireless_sensors.sensor_current <= wireless_sensors.sensor_limit_low && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"rule": "wireless_sensors.sensor_current <= `wireless_sensors.sensor_limit_low` && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\"",
|
||||
"name": "Wireless Sensor under limit",
|
||||
"default": true
|
||||
},
|
||||
|
Reference in New Issue
Block a user