Question about Host/Service contact relationships.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Question about Host/Service contact relationships.

Post 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!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Question about Host/Service contact relationships.

Post 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.
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: Question about Host/Service contact relationships.

Post by QS1 »

well, that explains it. Thanks!
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Question about Host/Service contact relationships.

Post by rdedon »

Please feel free to contact us again if you require any additional assistance.

Thanks!
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: Question about Host/Service contact relationships.

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Question about Host/Service contact relationships.

Post 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.
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: Question about Host/Service contact relationships.

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Question about Host/Service contact relationships.

Post 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?
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: Question about Host/Service contact relationships.

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Question about Host/Service contact relationships.

Post 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
Locked