Page 2 of 8

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 8:28 am
by ecolgroveMOT
I am not sure. Our email system is all 365 so i do not know where to go to look at the logs. That might be only something Microsoft can do.

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 10:32 am
by mbellerue
I'm looking over the thread again. Can you confirm that your email is setup to use SMTP, or is it still using Sendmail?

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 10:35 am
by ecolgroveMOT
it is just using sendmail still

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 10:46 am
by mbellerue
Okay, we'll probably want to figure out SMTP. I can't imagine that Verizon wouldn't block straight sendmail from any random machine, otherwise they would be flooded with spam in a heartbeat. If I recall, we had some issues getting SMTP working on your system. Do you recall where that left off?

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 10:56 am
by ecolgroveMOT
I do not. I think after we got the sendmail working the SMTP option was more complex than what time we had left, so it was rather brief.

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 12:58 pm
by mbellerue
I think we were troubleshooting communication issues to Office365. Let's start with nmap smtp.office365.com -p 587 and if that comes back as anything other than "open", we'll have to start digging into where the block is.

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 1:07 pm
by ecolgroveMOT
Here is Nagios Response:
[root@nagiosxi ~]# nmap smtp.office365.com -p 587

Starting Nmap 6.47 ( http://nmap.org ) at 2019-10-23 13:06 CDT
Nmap scan report for smtp.office365.com (52.96.70.242)
Host is up (0.0042s latency).
Other addresses for smtp.office365.com (not scanned): 52.96.37.210 40.97.28.98 5 2.96.44.162
PORT STATE SERVICE
587/tcp open submission

Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
[root@nagiosxi ~]#

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 1:29 pm
by mbellerue
Oh, well perfect. Let's go ahead, switch the email configuration over to SMTP, and send a test email. See what happens. Heads up, though, this will prevent email notifications from going out until we have SMTP fully functional.

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 1:59 pm
by ecolgroveMOT
I have included the settings for smtp as a attachment, but here s what nagios presents for a messages for a test email:
Test Email Settings
A test email was sent to [email protected]
----
Mailer said: [10-23-2019 13:57:07] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: admin/testemail.php
An error occurred sending a test email!
Use this to send a test email to your current logged in user address to verify you can recieve alerts from Nagios XI.

An email will be sent to: [email protected]

Change your email address

Re: Text Verification Times Out

Posted: Wed Oct 23, 2019 2:03 pm
by mbellerue
Was anything logged in /usr/local/nagiosxi/tmp/phpmailer.log?

Another couple of logs we can monitor while trying to send a test message,

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/eventman.log