Page 1 of 2
Question about Host/Service contact relationships.
Posted: Mon Mar 28, 2011 9:08 am
by QS1
If a Host has a contact associated with it, does the service for that Host automatically get associated with that contact?
I have a few Host where a contact is associated with it, but the service has a different contact associated with it, but BOTH get the notification. If this is true, is there a setting to disable it, or is this the way it's setup? Thanks!
Re: Question about Host/Service contact relationships.
Posted: Mon Mar 28, 2011 1:44 pm
by mguthrie
If a Host has a contact associated with it, does the service for that Host automatically get associated with that contact?
I believe so, yes.
I have a few Host where a contact is associated with it, but the service has a different contact associated with it, but BOTH get the notification. If this is true, is there a setting to disable it, or is this the way it's setup? Thanks!
You could set the contacts at the service level, instead of at the host level. This would allow 2 users to see a different set of services for a single host.
Re: Question about Host/Service contact relationships.
Posted: Mon Mar 28, 2011 2:53 pm
by QS1
well, that explains it. Thanks!
Re: Question about Host/Service contact relationships.
Posted: Mon Mar 28, 2011 3:02 pm
by rdedon
Please feel free to contact us again if you require any additional assistance.
Thanks!
Re: Question about Host/Service contact relationships.
Posted: Tue Apr 19, 2011 8:09 am
by QS1
mguthrie wrote:If a Host has a contact associated with it, does the service for that Host automatically get associated with that contact?
I believe so, yes.
I have a few Host where a contact is associated with it, but the service has a different contact associated with it, but BOTH get the notification. If this is true, is there a setting to disable it, or is this the way it's setup? Thanks!
You could set the contacts at the service level, instead of at the host level. This would allow 2 users to see a different set of services for a single host.
Just one more question... If set the contacts at the service level only, and the Host goes down, then no alerts go out because the Host is down. Anyway around this? We are just running into issues with people not on the service notification list getting notified.
Re: Question about Host/Service contact relationships.
Posted: Tue Apr 19, 2011 10:26 am
by mguthrie
Just one more question... If set the contacts at the service level only, and the Host goes down, then no alerts go out because the Host is down. Anyway around this? We are just running into issues with people not on the service notification list getting notified.
I might be misunderstanding your question, but if the host is down, then
all of it's services would also show up as critical or unknown. And if you set up contacts and notifications at the service level, the notifications should go out when the service has a problem. If you're having issues with this, feel free to send us a sample service and contact config and we can help you troubleshoot the issue. These files are located in the /usr/local/nagios/etc/ directory. However, don't do any manual changes to these files, the CCM will just overwrite them.
Re: Question about Host/Service contact relationships.
Posted: Wed Apr 20, 2011 10:09 am
by QS1
So, If i leave the contacts (for notifications) blank for the Host and simply put all the notification contacts at a service level it will be ok? What happens now if the HOST Check is down, the service for those host are down also, but no notifications are sent for the service, only for the HOST. I thought with the Parent-Child relationship that if the Parent/Host check is down, then no Child/Service checks are sent, just the Host. Which is what is happening now.
My problem is that I have contacts that want to be notified when the Host is down, but not for every service that I have for that Host. Even if they not listed under EVERY service as a notification contact they still get notified for that service. I guess because they are part of the HOST check, and they automatically get shoved to the service. If the HOST is down I still want them to be notified.
Re: Question about Host/Service contact relationships.
Posted: Wed Apr 20, 2011 4:10 pm
by mguthrie
You could set up a Ping service for those hosts and have both sets of contacts defined for the Ping Service. The host check is just running a simple ping check. Would that accomplish what you need?
Re: Question about Host/Service contact relationships.
Posted: Thu Apr 21, 2011 11:31 am
by QS1
mguthrie wrote:You could set up a Ping service for those hosts and have both sets of contacts defined for the Ping Service. The host check is just running a simple ping check. Would that accomplish what you need?
Well that's what I have, but am i understanding this right?
If the host has multiple contacts, then by default those same contacts are applied to the services for that host?
Re: Question about Host/Service contact relationships.
Posted: Thu Apr 21, 2011 12:53 pm
by mguthrie
I know for sure that contact groups are automatically inherited into the services if nothing else is specified, I
think contacts are as well if they're not specifically defined for the service, but I'll have to double check on that...
Actually, I think this Doc might have what you need:
http://assets.nagios.com/downloads/nagi ... enancy.pdf