Question about service contacts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Question about service contacts

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Question about service contacts

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Re: Question about service contacts

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Question about service contacts

Post by rkennedy »

You're welcome. Are we good to close this thread out now?
Former Nagios Employee
yeahMon
Posts: 27
Joined: Thu Oct 29, 2015 1:26 pm

Re: Question about service contacts

Post by yeahMon »

Go ahead and close. Thanks again.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Question about service contacts

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked