Page 1 of 1

Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 7:38 am
by lanware
So we keep receiving alerts to one of our contacts, even though this contact is not defined anywhere for the service that keeps sending alerts. (Multiple services are demonstrating the same behaviour, but just to this one contact)
The contact group for the user is not defined, and the contact for the user is not defined. We have checked the service template too in case it was defined in there and inherited. When we use the bulk modification tool to remove this contact from services, we cannot see a relationship mapped to this service, and the same goes for the contact group.
However when we check the service alert notifications sent out in the Nagios log by checking in Nagios core, we can see the notifications listed plain as day, and we're obviously receiving the e-mail alerts too.

Here are the details of our install:
Nagios XI 2012R2.2
CentOS 5.5
32 bit
Manual Install of XI?
Only customization is the ramdisk modification i.e. /var/nagiosramdisk

Any ideas?

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 9:39 am
by abrist
Check your configs for the contact (case sensitive):

Code: Select all

grep <contact> /usr/local/nagios/etc/*/*
You could also check the objects.cache file:

Code: Select all

grep <contact> -25 /usr/local/nagios/var/objects.cache | grep "contact\|host_name\|service_desc"

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 9:59 am
by lanware
Hi,

The contact is listed beside the contacts property when checking the objects.cache, but not when looking at the config file.
When searching for the host with grep in the configuration directory, there are only 2 config files, one for the host, and another for the services. The contact is not defined in either of these two files.

Thanks.

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 10:35 am
by lmiltchev
Send us your latest configuration snapshot to [email protected]. Put "Re: Service notifications being received and can't see why" in the email's subject field. Thanks!

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 10:38 am
by sreinhardt
Do these hosts\services have any contact groups associated with them, or that are getting inherited? While the contact may not have a group defined, it certainly can be defined in the contact group instead. As lmiltchev stated, sending your configuration and the user\contact with issues would be most helpful.

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 10:53 am
by lanware
I've PM'd you guys with the latest config snapshot, thanks.

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 11:45 am
by lmiltchev
Run the following commands:

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db stop
service ndo2db start
service nagios start
and see if this is going to fix the issue.

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 11:59 am
by lanware
Still exactly the same after running all of the above, the contact still appears in the service configuration in the objects.cache.

Re: Service notifications being received and can't see why

Posted: Mon Jul 01, 2013 1:37 pm
by abrist
If you have a support contract, send an email to [email protected] and we will set up a remote session.