Notification not Going through
Posted: Fri Mar 16, 2018 9:28 am
HI Team,
we are planning to upgrade from Nagios XI 2014R2.7 - 5.4.12 and in order to test before migrate PRD server we have updated Dev Environment to latest Version Nagios XI 5.4.12.
As earlier in Dev Environment notification was not enabled so we are planning to first test it in on DEV before move to PRD. as of now we have upgraded it to Latest version but now stuck on Notification.
Error ----
when i am sending test Mail from Nagios Portal i am getting below error ...
A test email was sent to *******[email protected]
----
Mailer said: [03-16-2018 09:43:35] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
Have refereed below URL as well.
https://support.nagios.com/kb/article.php?id=36
https://support.nagios.com/kb/article.php?id=136
Below are few points which you might be require for further go on...
Current Environment -- Nagios XI 5.4.12
OS -- Linux 2.6.32-431.20.5.el6.x86_64
Contact Template -- xi_host_notification_handler
Notification sent -- 24*7
Notification Settings Management -- Using Default Template
Mail Method -- SMTP
Able to Telnet -- Yes with 25 Port
Notification Enabled -- Yes
Able to Send Mail from Linux Terminal -- Yes
Checked with Exchange team Nagios XI is allowed to send Mail -- Yes
Under Incident Management > Notification > I am able to see Nagios is sending Alert to My E-Mail ID.
Command --
/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=host --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --datetime="$LONGDATETIME$"
tail /usr/local/nagiosxi/tmp/phpmailer.log
[03-16-2018 10:10:08] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[03-16-2018 10:10:38] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[03-16-2018 10:12:31] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
we are planning to upgrade from Nagios XI 2014R2.7 - 5.4.12 and in order to test before migrate PRD server we have updated Dev Environment to latest Version Nagios XI 5.4.12.
As earlier in Dev Environment notification was not enabled so we are planning to first test it in on DEV before move to PRD. as of now we have upgraded it to Latest version but now stuck on Notification.
Error ----
when i am sending test Mail from Nagios Portal i am getting below error ...
A test email was sent to *******[email protected]
----
Mailer said: [03-16-2018 09:43:35] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
Have refereed below URL as well.
https://support.nagios.com/kb/article.php?id=36
https://support.nagios.com/kb/article.php?id=136
Below are few points which you might be require for further go on...
Current Environment -- Nagios XI 5.4.12
OS -- Linux 2.6.32-431.20.5.el6.x86_64
Contact Template -- xi_host_notification_handler
Notification sent -- 24*7
Notification Settings Management -- Using Default Template
Mail Method -- SMTP
Able to Telnet -- Yes with 25 Port
Notification Enabled -- Yes
Able to Send Mail from Linux Terminal -- Yes
Checked with Exchange team Nagios XI is allowed to send Mail -- Yes
Under Incident Management > Notification > I am able to see Nagios is sending Alert to My E-Mail ID.
Command --
/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=host --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --datetime="$LONGDATETIME$"
tail /usr/local/nagiosxi/tmp/phpmailer.log
[03-16-2018 10:10:08] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[03-16-2018 10:10:38] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[03-16-2018 10:12:31] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=forwarder.mail.xerox.com;port=25;smtpauth=true;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email