mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Palo Alto HA Alert Rule references non-existent column in sensors table (#8138)
column in the sensors table. However there is no "type" column. This should be "sensor_type". This is indicated by the error in the logs: `MySQL Error: Unknown column 'sensors.type' in 'where clause' (SELECT * FROM devices,sensors WHERE (( sensors.device_id = devices.device_id ) && devices.device_id = '102') && (devices.os = "panos" & sensors.type = "panSysHAState" && sensors.sensor_current = "1" && sensors.sensor_prev = "2" )) ` Updated the rule to reference the correct column.
This commit is contained in:
@ -277,7 +277,7 @@
|
||||
"name": "Cisco NX-OS device has a bad fan"
|
||||
},
|
||||
{
|
||||
"rule": "%devices.os = \"panos\" & %sensors.type = \"panSysHAState\" && %sensors.sensor_current = \"1\" && %sensors.sensor_prev = \"2\"",
|
||||
"rule": "%devices.os = \"panos\" & %sensors.sensor_type = \"panSysHAState\" && %sensors.sensor_current = \"1\" && %sensors.sensor_prev = \"2\"",
|
||||
"name": "Palo Alto Networks passive firewall changed to active"
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user