Duplicate alert emails.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Duplicate alert emails.

Post by sreinhardt »

Considering that the sendmail log is not showing duplicate messages sent, and does log an entry per message sent, this would not be the same issue. Thanks for the hint though!
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.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Duplicate alert emails.

Post by vinothsethuram »

Today morning I received 13 emails for an issue.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Duplicate alert emails.

Post by sreinhardt »

Have you looked at the sendmail logs, or the nagios log for notifications sent, or the relay that sendmail is forwarding to? I'm sorry that this is happening, but more detailed information is needed to really assist you.
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.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Duplicate alert emails.

Post by vinothsethuram »

Nagios notification log is having only one entry. I dont know what is sendemail log and how to check that log. I've requested my consultant to check the mail relay logs.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Duplicate alert emails.

Post by slansing »

The maillog is what you showed earlier in which only one email was sent out from the Nagios server per alert. Now.. as I mentioned in the followup post, all the mail you showed us occurred in the same second, so it would be nice to see a larger grab of that logfile. Would you be able to run another test notification but this time:

Code: Select all

tail -100 /var/log/maillog
Make sure that you post the above output in codewraps on this thread! Use the Code button in your "Post A Reply" page.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Duplicate alert emails.

Post by vinothsethuram »

If I send custom notification, then all contact members are receiving only one email. For Services Critical/Recovery and Host Down/recovery I'm getting multiple alerts.

Thanks
Vinoth
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Duplicate alert emails.

Post by abrist »

Could you post the logs? Or PM them?
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.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Duplicate alert emails.

Post by vinothsethuram »

Here is the log. Each contacts received 9 emails for the time between 1.57-1.58 AM

Code: Select all

Dec  3 01:57:46 nagios sendmail[19630]: rB36vk2B019630: from=<[email protected]>, size=663, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19567]: rB36vjT5019567: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30418, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkfI019621 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19566]: rB36vjlO019566: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30405, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkio019622 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19575]: rB36vkjM019575: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30401, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkqB019625 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19569]: rB36vkAg019569: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30402, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vktk019624 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19573]: rB36vk4l019573: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30401, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkhx019627 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19632]: rB36vkM5019632: from=<[email protected]>, size=673, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19629]: rB36vkLe019629: from=<[email protected]>, size=659, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19568]: rB36vkYm019568: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30410, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkLV019623 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19580]: rB36vk7O019580: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30412, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkfS019626 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19637]: rB36vklI019637: from=<[email protected]>, size=665, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19636]: rB36vkjD019636: from=<[email protected]>, size=663, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19631]: rB36vkTx019631: from=<[email protected]>, size=657, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19633]: rB36vk6g019633: from=<[email protected]>, size=653, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:46 nagios sendmail[19579]: rB36vkXG019579: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30407, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vk2B019630 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19581]: rB36vkUU019581: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30418, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkWA019628 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19574]: rB36vk2e019574: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30412, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkM5019632 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19578]: rB36vkg8019578: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30405, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkLe019629 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19570]: rB36vkle019570: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30402, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vk6g019633 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19571]: rB36vkPC019571: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30407, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkjD019636 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19576]: rB36vk8n019576: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30408, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vklI019637 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19572]: rB36vkY2019572: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30404, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vkTx019631 Message accepted for delivery)
Dec  3 01:57:46 nagios sendmail[19647]: rB36vkqB019625: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120651, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19657]: rB36vk2B019630: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120663, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19661]: rB36vkLe019629: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120659, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19656]: rB36vkWA019628: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120685, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19645]: rB36vkio019622: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120659, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19652]: rB36vkLV019623: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120669, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19653]: rB36vkfS019626: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120673, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19639]: rB36vkot019620: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120669, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19638]: rB36vku2019619: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120665, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19641]: rB36vkfI019621: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120685, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19649]: rB36vktk019624: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120653, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19650]: rB36vkhx019627: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120651, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19660]: rB36vkM5019632: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120673, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19663]: rB36vk6g019633: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120653, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19665]: rB36vkjD019636: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120663, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19669]: rB36vkTx019631: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120657, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:46 nagios sendmail[19667]: rB36vklI019637: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120665, relay=fraexsmtp2.abcdsams.com. [10.3.32.143], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
Dec  3 01:57:47 nagios sendmail[19670]: rB36vlQC019670: from=<[email protected]>, size=657, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec  3 01:57:47 nagios sendmail[19577]: rB36vkN8019577: [email protected], ctladdr=nagios (2147400000/2147400000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30404, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rB36vlQC019670 Message accepted for delivery)
Dec  3 01:57:47 nagios sendmail[19672]: rB36vlQC019670: to=<[email protected]>, ctladdr=<[email protected]> (2147400000/2147400000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120657, relay=fraexsmtp1.abcdsams.com. [10.1.4.22], dsn=2.0.0, stat=Sent ( <[email protected]> Queued mail for delivery)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Duplicate alert emails.

Post by slansing »

Did you say you were using Sendmail or SendEmail? Did you make any configuration changes to your MTA? Since all of your issues are email configuration based right now it would seem that is the case. This is not default behavior by any means.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Duplicate alert emails.

Post by vinothsethuram »

No I didn't use sendemail and I didnt change any configuration.


Today also I received multiple alert emails which I copied below

Code: Select all

From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:17 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.024 second response time

Date/Time: Wed Dec 4 04:16:59 EST 2013



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:17 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.035 second response time

Date/Time: Wed Dec 4 04:17:00 EST 2013



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:17 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.170 second response time

Date/Time: Wed Dec 4 04:16:59 EST 2013


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:17 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.087 second response time

Date/Time: Wed Dec 4 04:17:00 EST 2013



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:18 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.024 second response time

Date/Time: Wed Dec 4 04:17:59 EST 2013





-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:18 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.025 second response time

Date/Time: Wed Dec 4 04:18:00 EST 2013



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, December 04, 2013 4:23 AM
To: A, user1
Subject: ** PROBLEM Host Alert: http://www.abcd.com is DOWN **

***** Nagios *****

Notification Type: PROBLEM
Host: http://www.abcd.com
State: DOWN
Address: http://www.abcd.com
Info:HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 517 bytes in 0.024 second response time

Date/Time: Wed Dec 4 04:22:59 EST 2013
Locked