Hi all,
I noticed when a Contact Group is applied to a service, the contact group is only contacted when a service goes down, but not when the host goes down. However when a contact group is applied to a host, the group is notified both when the host goes down and when the services go down.
I would like for a Contact Group/Contact to be setup to only be notified when the host goes down and not the services. Is this possible?
Thank you.
Contact Groups
Re: Contact Groups
selectport,
If you want one group to get service alerts and another to get host alerts, then it will be tricky, however if a global solution fills your needs. Goto:
Core Config Manager > Hosts > (find your host and click the wrench icon) > Alert Settings > Notification Options
Here you can set when notifications will be triggered. Click the question mark for an explanation of what each option means. Notice that there are probably no boxes checked. That means that this host is referring to a host template, so if you'd like to change that globally you can change the template that the host is based off of. Keep in mind after making changes that you will need to Apply Configuration.
If you want one group to get service alerts and another to get host alerts, then it will be tricky, however if a global solution fills your needs. Goto:
Core Config Manager > Hosts > (find your host and click the wrench icon) > Alert Settings > Notification Options
Here you can set when notifications will be triggered. Click the question mark for an explanation of what each option means. Notice that there are probably no boxes checked. That means that this host is referring to a host template, so if you'd like to change that globally you can change the template that the host is based off of. Keep in mind after making changes that you will need to Apply Configuration.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
selectport
- Posts: 26
- Joined: Thu May 12, 2011 3:18 pm
Re: Contact Groups
nscott,
I apologize, I incorrectly stated our problem.
If host is down, only the host contact is notified (Services are dependant on the Host)
- Problem: No service contacts are notified that the service is down.
- Questions: Can we change Nagios to alert the service contacts when the host is down? Can we change the dependency so that the services are not dependant on the host?
If the service is down, both the host and service contacts are notified.
- Problem: Host contacts get unwanted alerts.
I apologize, I incorrectly stated our problem.
If host is down, only the host contact is notified (Services are dependant on the Host)
- Problem: No service contacts are notified that the service is down.
- Questions: Can we change Nagios to alert the service contacts when the host is down? Can we change the dependency so that the services are not dependant on the host?
If the service is down, both the host and service contacts are notified.
- Problem: Host contacts get unwanted alerts.
Re: Contact Groups
You can setup the notifications for your contacts by going to: Nagios Core Config Manager->Contacts (under "Alerting" from the left panel menu). Click on the "Modify" action button for a particular contact. Under the "Common Settings" tab, you can set the "Host notif. enable" and the "Service notif. enable" fields, so that your contact will receive notifications for hosts, services, or both. You have to also make sure that these contacts are members of the proper contact groups.
You can get more in-depth info on the topic by checking out these pages:
http://nagios.sourceforge.net/docs/nagi ... tions.html
http://nagios.sourceforge.net/docs/nagi ... ml#contact
http://nagios.sourceforge.net/docs/nagi ... tance.html
You can get more in-depth info on the topic by checking out these pages:
http://nagios.sourceforge.net/docs/nagi ... tions.html
http://nagios.sourceforge.net/docs/nagi ... ml#contact
http://nagios.sourceforge.net/docs/nagi ... tance.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
selectport
- Posts: 26
- Joined: Thu May 12, 2011 3:18 pm
Re: Contact Groups
Following lmiltchev's suggestion, I checked the Common Settings tab under Contact Management. Both Host notif. enable is on and Service notif. enable is on. However I still do not get notified when the host is down. Is there a setting I am missing?
-------------------------------
Also, when I set a notification of a service to off, it still notifies the host contact. Is there a way to set it up so that the host contact does not get notified of the service?
Please see screenshot below of alert service settings.

Thanks,
selectport.
-------------------------------
Also, when I set a notification of a service to off, it still notifies the host contact. Is there a way to set it up so that the host contact does not get notified of the service?
Please see screenshot below of alert service settings.

Thanks,
selectport.
Re: Contact Groups
I think you can achieve this with host escalations. We have documentation available here:
If you have any trouble following the docs we'll take it from there.
If you have any trouble following the docs we'll take it from there.