Page 1 of 2
Host notification issue
Posted: Mon Nov 05, 2018 8:50 am
by dkumar
Hi,
I am facing a strange issue with notification. I am using Nagios XI and I am not getting notification for services those get added with host by default(like memory/swap/load etc) but notification for services those i added under same host later are coming properly.
Re: Host notification issue
Posted: Mon Nov 05, 2018 5:23 pm
by scottwilkerson
dkumar wrote:I am using Nagios XI and I am not getting notification for services those get added with host by default(like memory/swap/load etc)
Services don't get added to any host by default, but if you have hostgroups attached to a service, then they would be automatically added.
You are going to want to find these services in the CCM that have the hostgroup assigned and then modify those service configs to add the contacts you want to receive notifications to that.
Re: Host notification issue
Posted: Tue Nov 06, 2018 9:22 am
by dkumar
Thanks for clarification. I got these services in CCM but the problem is, same service is added under different hosts. Due to this I don't want to add any contact or contact group under these services directly. Different hosts need to send alert to different set of users. Therefor I have added contact and contact groups to host under CCM instead of services. Now for same host alerts for some services are going properly but for some its not coming.
Re: Host notification issue
Posted: Tue Nov 06, 2018 9:28 am
by scottwilkerson
Do you have any contact or contact groups assigned to these services if so they would override any inheritance from the hosts?
Re: Host notification issue
Posted: Tue Nov 06, 2018 9:34 am
by dkumar
No Contact or contact group is assigned to these services. Its assigned to hosts only.
Re: Host notification issue
Posted: Tue Nov 06, 2018 4:12 pm
by scottwilkerson
Could you share one of these service configurations along with any attached templates?
Re: Host notification issue
Posted: Thu Nov 08, 2018 9:01 am
by dkumar
I have send the attachement on PM. I hope this is what you want. Let me know if you need something different. thanks.
Re: Host notification issue
Posted: Thu Nov 08, 2018 9:30 am
by scottwilkerson
The services have a template of local-service attached, could you send that as well
thanks
Re: Host notification issue
Posted: Thu Nov 08, 2018 11:28 am
by scottwilkerson
So as we dug through this, one of the underlying templates attached to the service has the following:
If a contact group is assigned to a service either directly or attached with a template, the contact_group inheritance from the host will not work.
See the "Implied Inheritance" section here
https://assets.nagios.com/downloads/nag ... tance.html
Re: Host notification issue
Posted: Wed Dec 05, 2018 5:08 am
by dkumar
Thanks. This has resolved my issue. You can close this.