Page 1 of 1
Duplicate alerts
Posted: Tue May 07, 2013 9:27 am
by mobiledataforce
For some reason, I have began receiving alerts twice. I have always gotten Nagios Monitor XI Alert's via email; last night I started receiving a duplicate/similar email alert that has labeled itself as Nagios XI Alert ***** TestService and includes URLs to "Respond" and go to my Nagios URL. I do not want to receive email alerts twice in this fashion; please help.
Thanks.
Re: Duplicate alerts
Posted: Tue May 07, 2013 9:38 am
by slansing
Would you be able to share a screenshot of this alert doubling up in the Notifications report? Try to find the exact time this was sent out in the following page:
Reports > Notifications.
Thanks! Please, also let us know what the contact's name was that received the doubled messages.
Re: Duplicate alerts
Posted: Tue May 07, 2013 9:45 am
by mobiledataforce
I don't have a fast/convenient place to host the image, but here is the text from the notification report. These are recovery alerts for 2 Hosts, going to 3 recipients (the first host only goes to one). I am now very confused as to how one of the users seems to not be effected.
2013-05-07 08:31:01 Host-1 Backup: Disk Usage Service Recovery No OK nagiosadmin Nagios XI G:\ - total: 1853.44 Gb - used: 1695.42 Gb (91%) - free 158.02 Gb (9%) NID: 4995, COID: 75, CNID: 4640, CNMID: 7150
2013-05-07 08:31:01 Host-1 Backup: Disk Usage Service Recovery No OK nagiosadmin Custom: notify-service-by-email G:\ - total: 1853.44 Gb - used: 1695.42 Gb (91%) - free 158.02 Gb (9%) NID: 4995, COID: 75, CNID: 4640, CNMID: 7151
2013-05-07 08:30:25 Host-2 Drive C: Disk Usage Service Recovery No OK user1 Nagios XI C:\ - total: 60.00 Gb - used: 48.20 Gb (80%) - free 11.79 Gb (20%) NID: 4994, COID: 744, CNID: 4637, CNMID: 7145
2013-05-07 08:30:25 Host-2 Drive C: Disk Usage Service Recovery No OK user1 Custom: notify-service-by-email C:\ - total: 60.00 Gb - used: 48.20 Gb (80%) - free 11.79 Gb (20%) NID: 4994, COID: 744, CNID: 4637, CNMID: 7146
2013-05-07 08:30:25 Host-2 Drive C: Disk Usage Service Recovery No OK nagiosadmin Nagios XI C:\ - total: 60.00 Gb - used: 48.20 Gb (80%) - free 11.79 Gb (20%) NID: 4994, COID: 75, CNID: 4638, CNMID: 7147
2013-05-07 08:30:25 Host-2 Drive C: Disk Usage Service Recovery No OK nagiosadmin Custom: notify-service-by-email C:\ - total: 60.00 Gb - used: 48.20 Gb (80%) - free 11.79 Gb (20%) NID: 4994, COID: 75, CNID: 4638, CNMID: 7148
2013-05-07 08:30:25 Host-2 Drive C: Disk Usage Service Recovery No OK user2 Nagios XI C:\ - total: 60.00 Gb - used: 48.20 Gb (80%) - free 11.79 Gb (20%) NID: 4994, COID: 748, CNID: 4639, CNMID: 7149
Seems it is the Custom: notify-service-by-email. I don't know how it has started all of a sudden.
Re: Duplicate alerts
Posted: Tue May 07, 2013 10:58 am
by sreinhardt
what host and service notification commands do you have defined for the nagiosadmin under contact settings?
Re: Duplicate alerts
Posted: Tue May 07, 2013 11:16 am
by mobiledataforce
For hosts I have notify-host-by-email and xi_host_notification_handler, for services I have notify-service-by-email and xi_service_notification_handler. I see for "user2" that is not receiving duplicate alerts (but is receiving them) does not have any notification commands set. Not sure how "user2" would be receiving the email notifications at all if none are defined?
Re: Duplicate alerts
Posted: Tue May 07, 2013 12:47 pm
by abrist
I don't know about user2, but setting both notify-*-by-email and xi_*_notification_handler for a contact is not suggested. This will lead to multiple notifications. Our suggestion is to only use xi_*_notification_handler with XI user/contacts.
Re: Duplicate alerts
Posted: Tue May 07, 2013 3:58 pm
by mobiledataforce
Thanks. I'm not sure how I started receiving the alerts from both notification commands; but am now only receiving one with just one notification command defined.
Re: Duplicate alerts
Posted: Tue May 07, 2013 4:05 pm
by slansing
Great that should do it! Any other issues regarding this?