Most of the times when a device is no longer needed i need to keep the graphs available for a year.
The options to disable and ignore the device do not prevent it from showing up in the Notifications section.
It would be nice to be able to archive devices so they do not show up in Notifications and can be found under a new section ‘Archive’. They do not need to be poller of discovered of course.
You can exclude ignored / disabled devices in alerts to deal with this (the defaults should do that). %macros.device = “1” will match devices that are up and not ignored/disabled.
Thank you, i tried it and it seems to help for the rules indeed, so at my installation the default did not include this.
Howver when i click on Alerts -> Notifications i still see the devices that are down but disabled.
If you still see alerts notifications for disabled devices then your alert rule isn’t using the macro I showed above - screenshot the rule here.
Run the capture debug for alerting, it will give you the sql query used to run that rule. Paste it here.
It will also tell you if the rule currently matches.
All rules do ‘not’ match, the capture shows it. Also i do not receive alert emails.
The devices are listed stll in the webgui under Alerts - Notifications.
please post the output of ./validate.php
Sorry for the delay:
./validate.php
Component | Version |
---|---|
LibreNMS | d526a16042418d27f3404de28d98118bc67bef57 |
DB Schema | 157 |
PHP | 7.0.8-0ubuntu0.16.04.3 |
MySQL | 10.0.28-MariaDB-0ubuntu0.16.04.1 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
==========================================================
[OK] Database connection successful
[WARN] Your local git contains modified files, this could prevent automatic updates.
Modified files:
includes/polling/applications/apache.inc.php
That modified file is because of https://github.com/librenms/librenms/issues/4995#issuecomment-262745553
Look at the eventlog for the device to see what it says about notifications
Eventlog for the device is empty. If i go to the Alerts tab under the device it is showing the down Alert.
Also the tab Alert Rules under Edit of the device also shows this rule in Red as matching.