Service notifications being received and can't see why

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lanware
Posts: 10
Joined: Mon Oct 03, 2011 11:53 am

Service notifications being received and can't see why

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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"
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
lanware
Posts: 10
Joined: Mon Oct 03, 2011 11:53 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
lanware
Posts: 10
Joined: Mon Oct 03, 2011 11:53 am

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

Post by lanware »

I've PM'd you guys with the latest config snapshot, thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lanware
Posts: 10
Joined: Mon Oct 03, 2011 11:53 am

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

Post by lanware »

Still exactly the same after running all of the above, the contact still appears in the service configuration in the objects.cache.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

If you have a support contract, send an email to [email protected] and we will set up a remote session.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked