Page 1 of 1
Disable a group
Posted: Thu Sep 25, 2014 10:42 am
by JohnFLi
I was asked by one of the other system admins here if it's possible to disable notifications of all services (hosts included) for a group of hosts.
the purpose is so that when they are applying windows patchs, they only want to click on somethign once to disable the alerts for when it comes reboot time.
I saw that if I made some hosts a child of another, I can disable the host, and child hosts but it doesn't say anything about the services.
any ideas?
Re: Disable a group
Posted: Thu Sep 25, 2014 10:47 am
by tmcdonald
Wouldn't that just be scheduled downtime?
http://nagios.sourceforge.net/docs/3_0/downtime.html
The first filter for host or service notifications is a check to see if the host or service is in a period of scheduled downtime. If it is in a scheduled downtime, no one gets notified. If it isn't in a period of downtime, it gets passed on to the next filter. As a side note, notifications for services are suppressed if the host they're associated with is in a period of scheduled downtime.
Re: Disable a group
Posted: Thu Sep 25, 2014 10:51 am
by JohnFLi
but that is one host at a time.
they are looking for something similar to clicking "disable notification all services for this host" (include host too) but for a group of hosts, not just one.
Re: Disable a group
Posted: Thu Sep 25, 2014 10:55 am
by tmcdonald
If you go to Hostgroup Summary, then click the hostgroup name (in parentheses) you will see a "Schedule downtime for all hosts in this hostgroup" link:
http://192.168.1.150/nagios/cgi-bin/ext ... ux-servers
The full list of commands:
Code: Select all
Schedule downtime for all services in this hostgroup
Enable notifications for all hosts in this hostgroup
Disable notifications for all hosts in this hostgroup
Enable notifications for all services in this hostgroup
Disable notifications for all services in this hostgroup
Enable active checks of all services in this hostgroup
Disable active checks of all services in this hostgroup
Same goes for service groups.
Re: Disable a group
Posted: Thu Sep 25, 2014 11:00 am
by JohnFLi
outstanding...... never thought about clicking on there
THank you