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.
Any way to get an alert that my notfications are disabled?
Re: Any way to get an alert that my notfications are disable
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.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?
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/issuesOr 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?
Former Nagios Employee
Re: Any way to get an alert that my notfications are disable
There is a feature request for this type of functionality at https://github.com/NagiosEnterprises/na ... /issues/52
Re: Any way to get an alert that my notfications are disable
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.
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.
Re: Any way to get an alert that my notfications are disable
Did you apply configuration after doing so? Your syntax looks correct, and just tested it over here -
My guess is you could have other hostgroups or templates interfering.
Code: Select all
define hostgroup {
hostgroup_name all hosts wildcard
alias all hosts wildcard
members *
}
Former Nagios Employee
Re: Any way to get an alert that my notfications are disable
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
Re: Any way to get an alert that my notfications are disable
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.
Thanks.