Page 1 of 2
2012R1.0 - Occasional duplicate notification...???
Posted: Fri Oct 19, 2012 3:28 pm
by scobi
Hi!
We seem to be getting an occasional duplicate notification since upgrading to 2012R1.0. Not every host, not every time so very difficult to replicate.
XI Host indicates it only sent 1 alert but 2 messages are received. Not related to client as the duplicate alerts are received by all the DL members (we manage notifications via Distribution Lists).
Any thoughts on this one? Not too big of a deal, we all have unlimited messaging plans...
Thanks as always!
Scobi
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Fri Oct 19, 2012 3:51 pm
by scottwilkerson
Could you post the contact definition for the contact that is being notified twice?
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Fri Oct 19, 2012 5:40 pm
by scobi
Ummm sure! Ummm, well.. Whats the best way to get you that info?
Thanks!
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Sat Oct 20, 2012 8:14 am
by scottwilkerson
you can either obfuscate the sensitive or send it to me in a pm or open a ticket by emailing
[email protected]
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Mon Oct 22, 2012 3:11 pm
by scobi
Hello! Sorry I wasn't clear in my last post...
Which file do you need me to post and where is it located?
Thanks!
Scobi
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Mon Oct 22, 2012 3:50 pm
by hhlodge
It may be moot, but we also get occasional duplicates on 2011 R3.2.
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Mon Oct 22, 2012 4:50 pm
by scottwilkerson
scobi wrote:Which file do you need me to post and where is it located?
Code: Select all
/usr/local/nagios/etc/contacts.cfg
Also, please point out which contacts are getting duplicates
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Mon Oct 22, 2012 7:10 pm
by scobi
Code: Select all
define contact {
contact_name Server-Alerts
alias Server-Alerts
host_notification_period Server-Alerts_notification_times
service_notification_period Server-Alerts_notification_times
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}
I was able to verify that only this contact is select in client notifications (no myself or other contacts). Also, no duplicates of the above entry in contacts.cfg...
Thanks!
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Tue Oct 23, 2012 9:38 am
by scottwilkerson
Could you also post this file
Code: Select all
/usr/local/nagios/etc/contacttemplates.cfg
Additionally, can you tell me what mail method you are using in Admin-> Manage Email Settings
We have had several reports of this but it is really sporadic and would like as much information as possible to try to nail this down.
Re: 2012R1.0 - Occasional duplicate notification...???
Posted: Tue Oct 23, 2012 11:40 am
by scobi
Hiyas!
Using SMTP method...
Code: Select all
###############################################################################
#
# Contacttemplate configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-10-16 01:49:46
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define contact {
name generic-contact
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
register 0
}
define contact {
name xi_contact_generic
contactgroups xi_contactgroup_all
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
register 0
}
###############################################################################
#
# Contacttemplate configuration file
#
# END OF FILE
#
###############################################################################
Probably TMI, but this happened again last night - if it helps, we received alerts from a couple services as follows:
Service1: Critical - Single email notification
Service1: Recovery - Single email notification
Service2: Warning - Double email notification but XI server shows 1 notification
Service2: Recovery - Single email notification
Again, not too big a deal, I'd rather have to delete a duplicate than miss a critical alert...
Thanks for looking into this!