Page 1 of 1

Question about service contacts

Posted: Wed Jan 13, 2016 9:41 am
by yeahMon
Hi There,

I'm using nagiosXI 5.2.0.
I have a new host i added with the linux wizard. The host was added to a host group that has some services associated with it as well as a contact group.
I can see in CCM that the new host has the contact group and also the services and all is good.

However i noticed when i look at any of the services for this host, that there are no contacts/contract groups assigned to the individual services.
This is what i would expect, and that i just need to assign contacts to each service. But then i started to receive alerts from some of the services for this host.
Since no contacts are shown in ccm->services in the alert tab, i checked to see what service template it was using. It was inheriting from 'local_service', so i checked that, but no contacts there either. That template was in turn inheriting from 'generic_service', but that also had no contacts.

So my question is, how is Xi deciding which contacts to send alerts to for these services, when i don't see any defined for them? I thought i would have to add a contact group manually to the services after the host was added. Mabey the contacts for the host are used by its services, unless specifically defined?

I'm new to nagios, so i'm sorry if this is a dumb question!

Re: Question about service contacts

Posted: Wed Jan 13, 2016 2:53 pm
by lmiltchev
It is hard to say without looking at all of the configs but I suspect that services inherit the contact group from the host via Implied Inheritance. To learn more about the object inheritance, please review our documentation here:

https://assets.nagios.com/downloads/nag ... tance.html

If you explicitly specified contacts in services and this case doesn't apply, post all of the relevant configs for a review. Thanks!

Re: Question about service contacts

Posted: Fri Jan 15, 2016 1:51 pm
by yeahMon
Thanks for the documentation link. You were correct in that services are an implied inheritance from the host they were associated to. Once i explicitly defined contacts to the services in question, they over rode the inherited contacts.

Of course, Since the same service can be used by multiple hosts which may have differing contacts, i'm not sure which host it would inherit from. I'm guessing either the first or last host created. But since i will explicitly define contacts, it doesn't matter.

Thanks again.

Re: Question about service contacts

Posted: Fri Jan 15, 2016 1:58 pm
by rkennedy
You're welcome. Are we good to close this thread out now?

Re: Question about service contacts

Posted: Mon Jan 18, 2016 9:18 am
by yeahMon
Go ahead and close. Thanks again.

Re: Question about service contacts

Posted: Mon Jan 18, 2016 10:03 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.