NagiosEnterprises / nagioscore

Nagios Core
GNU General Public License v2.0
1.5k stars 439 forks source link

Feature request: Latching status #978

Open sickel opened 2 weeks ago

sickel commented 2 weeks ago

I would love to have the possiblilty to have a "latching" status. That is, when the status is set to anything else than OK, it stays that way even if the logged entitiy itself goes back to a normal status.

My use case: Some of the systems I am monitoring have an integrated Door Open alarm. I can easily check that in nagios, but I want to know not only if a door is open, but also if a door has been open. I am storing state information, but it would be easier to see the alarm directly in my nagios dashboard.

I am sure this feature also could be useful for logging various "should not happen" cases that may indicate problems even if the problem itself went away,

everwatch commented 2 weeks ago

Two solutions.

  1. Put an event handler on the service that disables the service on a Door Open state. This way, it simply won't check again until someone manually reactivates the check.

  2. Send a notification. Let the humans know something happened.