Temporarily disable notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
elkali
Posts: 10
Joined: Tue May 19, 2015 7:53 am

Temporarily disable notifications

Post by elkali »

Is there any way to temporarily disable notifications in Nagios?

What I'm thinking: something similar to the service downtime, where I can specify a time for disabling notifications and another to re-enable them automatically.

The situation: Some times we do some testing with the subservice most of our service checks run against (you name it, check_nrpe, or check_graphite) and if there is a problem then all (or a very good chunk of them) our service checks will fail and spam our developers with non real alerts. What we do now is, via the web interface we disable the notifications. But occasionally we fail to remember to re-enable them, with its obvious bad consequences.


Does nagios core provide with some functionality to enable temporary notifications downtime? Or would it be fairly possible / easy to replicate the same functionality from the service downtime into the notifications system? Would this be a good candidate for a feature request?

Thanks in advance
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Temporarily disable notifications

Post by tmcdonald »

Former Nagios employee
elkali
Posts: 10
Joined: Tue May 19, 2015 7:53 am

Re: Temporarily disable notifications

Post by elkali »

tmcdonald wrote:It's pretty scriptable:
I know it is scriptable. I was wondering if the functionality however exists via the interface to provide a time on/off in a native way.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Temporarily disable notifications

Post by tmcdonald »

This is not built-in, no. As you noted you can enable/disable manually from the web interface, but this is essentially doing the same thing that these scripts are doing. You can certainly put in a feature request for this on the GitHub page: https://github.com/NagiosEnterprises/nagioscore
Former Nagios employee
elkali
Posts: 10
Joined: Tue May 19, 2015 7:53 am

Re: Temporarily disable notifications

Post by elkali »

tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Temporarily disable notifications

Post by tmcdonald »

Much appreciated. I'm going to close this thread now since it's in the hands of the devs, but I can start taking a look at the code and if I come up with anything myself I will update the GitHub page.
Former Nagios employee
Locked