I’ve migrated my installation to the new Alert Transports, but I’m having problems with Alerts not being generated automatically when rules are triggered.
e.g. I have a rule to generate an alert to flag a device which has reloaded:
macros.device = 1 AND devices.uptime < 480 AND macros.device_up = 1
If run this manually via the test-alert.php script it generates alerts as designed, and the “Issued critical alert” message appears in that device’s event log.
./test-alert.php -r 34 -h shb-poe-21.domain.com
Issuing Alert-UID #111706/1: mail => OK; pushover => OK; slack => OK;
Recent Events:
|2018-11-12 13:32:02||Issued critical alert for rule 'Device Reloaded' to transport 'slack'|
|2018-11-12 13:32:01||Issued critical alert for rule 'Device Reloaded' to transport 'mail'|
|2018-11-12 13:32:01||Issued critical alert for rule 'Device Reloaded' to transport 'pushover'|
If however I initiate a reload of the monitored device, while the Alert appears on the LibreNMS GUI Alerts page, no alerts are issued, and nothing appears in the device’s event log.
All the configured Alert Transports are Default and as described above everything works as expected when manually run via the test-alert.php script.
And just to confirm, all alerts were generated as expected when using the legacy transports.
Any ideas?
Thanks
====================================
Component | Version |
---|---|
LibreNMS | 1.45 |
DB Schema | 270 |
PHP | 7.0.32 |
MySQL | 5.5.60-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
==================================== |