Page 3 of 3

Re: Multiple events created for the same alert.

Posted: Fri Aug 07, 2020 8:45 am
by typer100
198.140.134.10 is an external address (probably Office 365). The Nagios server can't reach port 25 (firewall). I need to go through the gateway: mail.saq.qc.ca to reach it.

Re: Multiple events created for the same alert.

Posted: Fri Aug 07, 2020 9:10 am
by scottwilkerson
The settings for these would be found at Admin -> Email Settings and can be adjusted there, however if you have a firewall blocking, that would have to be taken care of by your firewall team

Re: Multiple events created for the same alert.

Posted: Mon Aug 10, 2020 7:57 am
by typer100
Why do you want me to change my email gateway to: 198.140.134.10. Because from the log, you can clearly see that Nagios is sending multiple emails.

[08-10-2020 09:11:30] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:31] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:32] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:32] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:32] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:32] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:33] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:33] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:33] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:34] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:34] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:34] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:35] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:35] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:35] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:35] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:39] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:39] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:39] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[08-10-2020 09:11:40] Message sent! (method=smtp;host=mail.saq.qc.ca;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email

Re: Multiple events created for the same alert.

Posted: Mon Aug 10, 2020 11:28 am
by scottwilkerson
You posted the below previously:
typer100 wrote:Hi! Emails are not going out. This is what I got from the /usr/local/nagiosxi/tmp/phpmailer.log.

[08-07-2020 08:47:02] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=198.140.134.10;port=25;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
This was where I got 198.140.134.10 from.

Your most recent post shows the mail going out properly and being accepted by mail.saq.qc.ca

Re: Multiple events created for the same alert.

Posted: Mon Aug 10, 2020 1:11 pm
by typer100
This IP was a suggestion by someone in your team, not me. Check the post : Postby tgriep » Thu Aug 06, 2020 3:29 pm

Re: Multiple events created for the same alert.

Posted: Mon Aug 10, 2020 1:54 pm
by scottwilkerson
typer100 wrote:This IP was a suggestion by someone in your team, not me. Check the post : Postby tgriep » Thu Aug 06, 2020 3:29 pm
I apologies for that, I missed that tgriep suggested that, talking to him it sounds like he saw 2 sources in the header your provided and was trying to see if that would be a potential work around.

Looking through the profile, the only thing that I see could cause what you showed from the Nagios server side would be if one of the email that you are using for the contacts in the xi_unix_contact_group was a mailing list that also included this same contact.

An additional possibility would be in you had specified Global Event Handler
Admin -> Manage Components -> Global Event Handlers -> Edit Setting

Re: Multiple events created for the same alert.

Posted: Tue Aug 11, 2020 12:20 pm
by typer100
I have other contact groups for differents alerts that are getting multiple emails. As for the Global Event Handlers extensions, we didn't modify the config.

Re: Multiple events created for the same alert.

Posted: Tue Aug 11, 2020 1:14 pm
by benjaminsmith
Hi @typer,

Appreciate your continued patience. We'll have to troubleshoot this issue further in a remote session, please open a ticket and reference this post.

https://support.nagios.com/tickets/

Thanks,
Benjamin

Re: Multiple events created for the same alert.

Posted: Thu Aug 13, 2020 8:26 am
by scottwilkerson
benjaminsmith wrote:Hi @typer,

Appreciate your continued patience. We'll have to troubleshoot this issue further in a remote session, please open a ticket and reference this post.

https://support.nagios.com/tickets/

Thanks,
Benjamin
Moved to ticket

Locking thread