Page 1 of 1

Unable to send any emails from Nagios

Posted: Mon Feb 07, 2022 3:22 am
by jpdl
Hello Team,
Here is the brief of notification issue we are facing.

Hosted Nagios XI on AWS with public IP assigned and trying to send email notification but could not do so. We have configured O365 SMPT email settings and tested it with PowerShell and it sends through powershell so all the settings are correct.

Below is the error we received when try to generate test notification.

A test email was sent to [email protected]
----
Mailer said: [02-07-2022 08:20:21] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=ssl), Referer: admin/testemail.php
An error occurred sending a test email!

I have uploaded our nagios profile
Please note I am not skilled in Linux, so when providing steps please be very precise where to do what.


Regards
JP

Re: Unable to send any emails from Nagios

Posted: Mon Feb 07, 2022 10:20 am
by gsmith
Hi,

This post is essentially a duplicate of "SMTP connect() failed on new setup" by the same author
so I am locking it to avoid confusion.

Thanks