Notification is not working after Nagios XI version upgrade
Posted: Fri Dec 27, 2019 11:51 am
Help,
After we upgrade the Nagios version to 5.6.9, notification suddenly not working. Tried to check the Notification and Email Settings and it was enabled and same smtp settings. Kindly try to check the log below.
phpmailer.log
Also, we tried to run a test mail, but we are unable to received it.
After we upgrade the Nagios version to 5.6.9, notification suddenly not working. Tried to check the Notification and Email Settings and it was enabled and same smtp settings. Kindly try to check the log below.
phpmailer.log
Code: Select all
[12-28-2019 00:31:17] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/scheduledreporting > Scheduled Report
[12-28-2019 00:31:20] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:36:40] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:37:52] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:38:02] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:38:37] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:40:44] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:43:13] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-28-2019 00:44:16] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: account/testnotification.php > PHPmailer Test
Code: Select all
Got XI user id for contact 'nagiosadmin': 1
An email notification will be sent...
Email Notification Data:
Array
(
[meta] => Array
(
[notification-type] => service
[contact] => nagiosadmin
[contactemail] => [email protected]
[type] => PROBLEM
[escalated] => 0
[author] =>
[comments] =>
[host] => 10.10.1.13
[hostaddress] => AZISGB2CPRDDB01
[hostalias] => AZISGB2CPRDDB01
[hostdisplayname] => AZISGE2EPRDDB01
[service] => TCP Port 49152
[hoststate] => UP
[hoststateid] => 0
[servicestate] => CRITICAL
[servicestateid] => 2
[lastservicestate] => CRITICAL
[lastservicestateid] => 2
[servicestatetype] => HARD
[currentattempt] => 5
[maxattempts] => 5
[serviceeventid] => 56557
[serviceproblemid] => 24231
[serviceoutput] => connect to address AZISGB2CPRDDB01 and port 49152: Connection refused
[longserviceoutput] =>
[datetime] => Sat Dec 28 00:43:13 +08 2019
)
[referer] => includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[to] => [email protected]
[subject] => PROBLEM Service Alert - 10.10.1.13/TCP Port 49152 is CRITICAL
[high_priority] => 1
[message] => ***** Nagios XI Alert *****
Nagios has detected a problem with this service.
Notification Type: PROBLEM
Service: TCP Port 49152
Host: 10.10.1.13
Address: AZISGB2CPRDDB01
State: CRITICAL
Info:
connect to address AZISGB2CPRDDB01 and port 49152: Connection refused
Date/Time: 2019-12-28 00:43:13
Respond: http://10.10.13.7/nagiosxi/rr.php?oid=210&token=afed9538332c482ecad7e2140df5d01be801a7ac
Nagios URL: http://10.10.13.7/nagiosxi/
[plaintext] =>
)
User has mobile text notifications disabled.
................
Also, we tried to run a test mail, but we are unable to received it.