Question about nagios notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
knockout
Posts: 1
Joined: Fri Dec 04, 2015 6:03 pm

Question about nagios notifications

Post by knockout »

Hi, I'm running Nagios Core 3.5.1 and had a question about how notifications work for the following configuration:

Code: Select all

define host
{
host_name host1
contacts contact1
}

define service
{
host_name host1
service_description service1
contacts contact2
}
In the above scenario, if service1 is critical, will both contact1 and contact2 receive the notification? I'm currently experiencing this behavior, but I am unable to tell if this is by design from the host definition documentation.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Question about nagios notifications

Post by Box293 »

I did some quick tests and I could not replicate your behaviour.

Looking at objects.cache after restarting nagios is a good way to see what the object definitions are.

When I had the contact ONLY defined in the host object, it was also defined in the service object (expected, implied inheritance).

When I defined a different contact in the service object, only this contact was defined in objects.cache for the service object

Do you have any escalations defined?

You might have multiple nagios processes running. What is the output of:

Code: Select all

ps -ef | grep nagios.cfg | grep -v grep
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked