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.
AD Group Contact getting double alerts
Re: AD Group Contact getting double alerts
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
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
Former Nagios Employee
-
jimhoffmann
- Posts: 50
- Joined: Fri May 03, 2013 1:38 pm
Re: AD Group Contact getting double alerts
Here is the Object Cache File you requested and a sample of the email alerts we are getting.
You do not have the required permissions to view the files attached to this post.
Re: AD Group Contact getting double alerts
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
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
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-emailRegarding those settings, you can refer to this doc for more detail https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out the Knowledgebase for helpful articles and solutions!
-
jimhoffmann
- Posts: 50
- Joined: Fri May 03, 2013 1:38 pm
Re: AD Group Contact getting double alerts
I removed the two notification commands as suggested and thank you again for the quick response.
Re: AD Group Contact getting double alerts
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!