
Is there a way to regenerate the alerts from the cli?
We have some checks that alert based on port state, dependent on conditions within a port description. But that matching is only performed during the alert regeneration, not during polling. So if the port description gets updated, the alert still triggers based on the old condition match...
I'm thinking of running a regen via cron on a regular basis to try and minimise the false positives.
Unless somebody has a better way to achieve a similar outcome?
Thanks, Michael

Alerts are regenerated after discovery, per host, when run without -m.
I've added a -r option to discovery which forces rediscovery when used with -m. You can now do "-m none -r" to force rebuild of group/alert associations without running discovery.
May disappear in future if we put it in a better place.
adam. On 22/02/2017 00:21:46, Michael obslist@smarsz.com wrote: Is there a way to regenerate the alerts from the cli?
We have some checks that alert based on port state, dependent on conditions within a port description. But that matching is only performed during the alert regeneration, not during polling. So if the port description gets updated, the alert still triggers based on the old condition match...
I'm thinking of running a regen via cron on a regular basis to try and minimise the false positives.
Unless somebody has a better way to achieve a similar outcome?
Thanks, Michael _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

Awesome. Thanks. Confirmed working in r8391.
I had only just been looking at the discovery options as a couple of alerts had cleared following a periodic discover...
(Don't forget to update the discover.php help text)
Michael
On 22 February 2017 1:50:49 PM LHDT, Adam Armstrong adama@memetic.org wrote:
Alerts are regenerated after discovery, per host, when run without -m.
I've added a -r option to discovery which forces rediscovery when used with -m. You can now do "-m none -r" to force rebuild of group/alert associations without running discovery.
May disappear in future if we put it in a better place.
adam. On 22/02/2017 00:21:46, Michael obslist@smarsz.com wrote: Is there a way to regenerate the alerts from the cli?
We have some checks that alert based on port state, dependent on conditions within a port description. But that matching is only performed during the alert regeneration, not during polling. So if the port description gets updated, the alert still triggers based on the old condition match...
I'm thinking of running a regen via cron on a regular basis to try and minimise the false positives.
Unless somebody has a better way to achieve a similar outcome?
Thanks, Michael _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Michael