Page 2 of 2

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Thu Feb 21, 2019 6:44 am
by amit9876
Hello Scott,

Sorry for coming back after long time.

I did try to enable the debug level but it was of no help and whole GUI is getting stuck and I am not seeing any response for both the options

SMTP and Sendmail

Please help..

tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log

[02-21-2019 11:50:01] Message sent! (method=sendmail), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:30:01] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:31:02] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:32:01] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:33:01] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:54:01] Message sent! (method=sendmail), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:34:01] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 11:35:02] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[02-21-2019 12:15:58] Message sent! (method=sendmail), Referer: admin/testemail.php
[02-21-2019 12:18:09] 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





[root@oc-monitoring-test phpmailer]# tail -f /var/log/maillog
Feb 21 12:28:34 oc-monitoring-test postfix/error[114229]: 36DA42180F3A: to=<[email protected]>, relay=none, delay=2911, delays=2627/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114197]: 3AB042180F23: to=<[email protected]>, relay=none, delay=2916, delays=2632/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114226]: 36D182180F36: to=<[email protected]>, relay=none, delay=2912, delays=2628/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114200]: 3AF402180980: to=<[email protected]>, relay=none, delay=2910, delays=2626/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114217]: 3F21A2180986: to=<[email protected]>, relay=none, delay=2909, delays=2625/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114206]: 3B9C92180992: to=<[email protected]>, relay=none, delay=2906, delays=2622/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:28:34 oc-monitoring-test postfix/error[114224]: 3F6A621809AB: to=<[email protected]>, relay=none, delay=2898, delays=2614/284/0/0.11, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:33:28 oc-monitoring-test postfix/smtp[111555]: 3C235218376B: to=<[email protected]>, orig_to=<root>, relay=opuscapita-com.mail.protection.outlook.com[104.47.6.36]:25, delay=31582, delays=30982/0.02/600/0, dsn=4.4.2, status=deferred (conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)
Feb 21 12:38:28 oc-monitoring-test postfix/qmgr[61506]: D68FA2183759: from=<[email protected]>, size=1047, nrcpt=1 (queue active)
Feb 21 12:43:28 oc-monitoring-test postfix/smtp[119352]: D68FA2183759: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Thu Feb 21, 2019 8:02 am
by scottwilkerson
Are you sure debug is turned on? Can you run the following

Code: Select all

grep SMTPDebug /usr/local/nagiosxi/html/includes/phpmailer/class.phpmailer.php|grep public

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Fri Feb 22, 2019 3:19 am
by amit9876
[root@oc-monitoring-test nagios-test]# grep SMTPDebug /usr/local/nagiosxi/html/includes/phpmailer/class.phpmailer.php|grep public
public $SMTPDebug = 2;
[root@oc-monitoring-test nagios-test]#

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Fri Feb 22, 2019 2:21 pm
by scottwilkerson
I noticed when you tested the connection before you were on oc-monitoring-prod
amit9876 wrote:Hi,

[nagios-prod@oc-monitoring-prod ~]$ telnet smtp.office365.com 587
Trying 40.101.124.194...
Connected to smtp.office365.com.
Escape character is '^]'.

[nagios-prod@oc-monitoring-prod ~]$ ping smtp.office365.com
PING DHR-efz.ms-acdc.office.com (52.97.149.82) 56(84) bytes of data.
64 bytes from 52.97.149.82 (52.97.149.82): icmp_seq=1 ttl=247 time=4.19 ms
64 bytes from 52.97.149.82 (52.97.149.82): icmp_seq=2 ttl=247 time=4.02 ms

Regards,
Amit
But when you showed the logs you were on oc-monitoring-test
amit9876 wrote:[root@oc-monitoring-test phpmailer]# tail -f /var/log/maillog
Feb 21 12:28:34 oc-monitoring-test postfix/error[114229]: 36DA42180F3A: to=<[email protected]>, relay=none, delay=2911, delays=2627/284/0/0.1, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with opuscapita-com.mail.protection.outlook.com[104.47.6.36] timed out while receiving the initial server greeting)

Can you perform them from the same machine?

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Mon Feb 25, 2019 9:43 am
by amit9876
Hi,

I have got Nagios XI running on PROD and Test instances and want to enable email-functionality on PROD but just to be sure that first it works on Test before moving to PROD. Configuration are AS-IS as Stage.

Re: NAgios XI email functionaity and Azure AD integration no

Posted: Mon Feb 25, 2019 10:42 am
by scottwilkerson
Can you run the ping and telnet tests on the test instances?