Any way to get an alert that my notfications are disabled?

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
kelemvor
Posts: 12
Joined: Wed Jun 05, 2013 3:47 pm

Any way to get an alert that my notfications are disabled?

Post by kelemvor »

When we do patching or other system maintenance, we generally go into Nagios and Disable all notifications from the Process Info page.
System | Process Info| Disable Notifications

However, we've had times in the past where someone has forgotten to go back in and turn notifications back on when they were done which is a problem. Is there any way that we can configure something so that it all notifications are disabled I can get a reminder email every so often telling me that my notifications are disabled?

Or is there any way to Disable All Notifications for a certain length of time and have them turn back on after XX hours or anything like that?

Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Any way to get an alert that my notfications are disable

Post by rkennedy »

However, we've had times in the past where someone has forgotten to go back in and turn notifications back on when they were done which is a problem. Is there any way that we can configure something so that it all notifications are disabled I can get a reminder email every so often telling me that my notifications are disabled?
This wouldn't work, since you've globally disabled your notifications. If you have another Nagios machine, then you could parse the status.dat to see if notifications are turned on, and alert you accordingly.
Or is there any way to Disable All Notifications for a certain length of time and have them turn back on after XX hours or anything like that?
Built in, there isn't a way to do this, but it could probably be done with a bash script or CRON. If you have an idea for a new idea, feel free to post the feature here for Core - https://github.com/nagiosenterprises/nagioscore/issues
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Any way to get an alert that my notfications are disable

Post by eloyd »

There is a feature request for this type of functionality at https://github.com/NagiosEnterprises/na ... /issues/52
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
kelemvor
Posts: 12
Joined: Wed Jun 05, 2013 3:47 pm

Re: Any way to get an alert that my notfications are disable

Post by kelemvor »

So I see I can do a Scheduled Downtime for a Host Group. Is there an easy way to just create a HostGroup that contains All the hosts?

I tried doing a:
define hostgroup {
hostgroup_name AllHosts
members * (also tried hostgroup_members)
}

But after I did a restart the group didn't show up so not sure if that's the right syntax. We are still on Nagios 3.5.1 if that matters.

Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Any way to get an alert that my notfications are disable

Post by rkennedy »

Did you apply configuration after doing so? Your syntax looks correct, and just tested it over here -

Code: Select all

define hostgroup {
        hostgroup_name                          all hosts wildcard
        alias                                   all hosts wildcard
        members                                 *
        }
all-hosts-hg.PNG
all-hosts-hg.PNG (13.51 KiB) Viewed 3004 times
My guess is you could have other hostgroups or templates interfering.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Any way to get an alert that my notfications are disable

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
kelemvor
Posts: 12
Joined: Wed Jun 05, 2013 3:47 pm

Re: Any way to get an alert that my notfications are disable

Post by kelemvor »

We ended up just parsing the status file to see if notifications are off and have a cron job that sends us an email every hour if it notices they are off.

Thanks.
Locked