Host notification issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dkumar
Posts: 8
Joined: Mon Oct 29, 2018 4:54 am

Host notification issue

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host notification issue

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dkumar
Posts: 8
Joined: Mon Oct 29, 2018 4:54 am

Re: Host notification issue

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host notification issue

Post by scottwilkerson »

Do you have any contact or contact groups assigned to these services if so they would override any inheritance from the hosts?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dkumar
Posts: 8
Joined: Mon Oct 29, 2018 4:54 am

Re: Host notification issue

Post by dkumar »

No Contact or contact group is assigned to these services. Its assigned to hosts only.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host notification issue

Post by scottwilkerson »

Could you share one of these service configurations along with any attached templates?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dkumar
Posts: 8
Joined: Mon Oct 29, 2018 4:54 am

Re: Host notification issue

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host notification issue

Post by scottwilkerson »

The services have a template of local-service attached, could you send that as well

thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host notification issue

Post by scottwilkerson »

So as we dug through this, one of the underlying templates attached to the service has the following:

Code: Select all

contact_groups nagiosadmins
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dkumar
Posts: 8
Joined: Mon Oct 29, 2018 4:54 am

Re: Host notification issue

Post by dkumar »

Thanks. This has resolved my issue. You can close this.
Locked