Page 1 of 1

Question about nagios notifications

Posted: Fri Dec 04, 2015 6:20 pm
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.

Re: Question about nagios notifications

Posted: Sun Dec 06, 2015 9:27 pm
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