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?
Service notifications being received and can't see why
Re: Service notifications being received and can't see why
Check your configs for the contact (case sensitive):
You could also check the objects.cache file:
Code: Select all
grep <contact> /usr/local/nagios/etc/*/*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.
"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.
Re: Service notifications being received and can't see why
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.
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
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
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.
Re: Service notifications being received and can't see why
I've PM'd you guys with the latest config snapshot, thanks.
Re: Service notifications being received and can't see why
Run the following commands:
and see if this is going to fix the issue.
Code: Select all
service nagios stop
killall -9 nagios
service ndo2db stop
service ndo2db start
service nagios startBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service notifications being received and can't see why
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
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.
"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.