Page 1 of 1
AD Group Contact getting double alerts
Posted: Wed Jun 22, 2016 2:24 pm
by jimhoffmann
A user notice that an Active Directory group (
[email protected]) he belongs to is getting double the alerts from a server (oradb01test) Nagios is monitoring. Nagios will send an alert for the Host server and then an alert for the service that is having the issue. When the service has recovered, Nagios will send a alert to
[email protected] for both the Host and the service. The interesting thing is that the Host is not going down just the service. Need to know is there a setting in Nagios I can check to turn correct this.
If you need more information, please let me know.
Re: AD Group Contact getting double alerts
Posted: Wed Jun 22, 2016 3:16 pm
by rkennedy
Could you post screenshots of the different emails so that we can see an example?
Also, please attach your objects.cache for us to review. This will contain your definitions compiled together so that we can see how Nagios is looking at them. It's located @ /usr/local/nagios/var/objects.cache
Re: AD Group Contact getting double alerts
Posted: Thu Jun 23, 2016 10:09 am
by jimhoffmann
Here is the Object Cache File you requested and a sample of the email alerts we are getting.
Re: AD Group Contact getting double alerts
Posted: Thu Jun 23, 2016 12:22 pm
by bwallace
Thanks for the files. Here is the problem:
define contact {
contact_name OracleDBA
alias Oracledba E-Mail alias
service_notification_options r,w,u,c,f,s
host_notification_options r,d,u,f,s
service_notification_commands notify-service-by-email,
notify-host-by-email
host_notification_commands
notify-service-by-email,notify-host-by-email
Delete the red items so it looks like this
Code: Select all
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
These changes are made in the GUI by going to
Configure → Core Config Manager → Contacts -->OracleDBA...click the
Alert Settings tab then click on '
Manage Host Notification Commands' and remove notify-service-by-mail from the right column. Do the same for '
Manage Service Notification Commands' but remove notify-host-by-mail'
Regarding those settings, you can refer to this doc for more detail
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: AD Group Contact getting double alerts
Posted: Thu Jun 23, 2016 1:08 pm
by jimhoffmann
I removed the two notification commands as suggested and thank you again for the quick response.
Re: AD Group Contact getting double alerts
Posted: Thu Jun 23, 2016 2:03 pm
by bwallace
You're welcome. Those changes should do the trick, but let's leave this thread open while you monitor and perhaps you can provide a status update in a day or two.