Notification is not working after Nagios XI version upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Notification is not working after Nagios XI version upgrade

Post by tssnagiosadmin »

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

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] => DL.DL-TSS-SGP-ZP-SAP-OPS@t-systems.com
            [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] => DL.DL-TSS-SGP-ZP-SAP-OPS@t-systems.com
    [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.
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Notification is not working after Nagios XI version upgr

Post by tssnagiosadmin »

In addition, I enabled the traces the Debug Output.

Code: Select all

2019-12-27 18:07:15 Connection: opening to smtp.sendgrid.net:587, timeout=300, options=array ()
2019-12-27 18:07:16 Connection: opened
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "220 SG ESMTP service ready at ismtpd0002p1maa1.sendgrid.net"
2019-12-27 18:07:16 SERVER -> CLIENT: 220 SG ESMTP service ready at ismtpd0002p1maa1.sendgrid.net
2019-12-27 18:07:16 CLIENT -> SERVER: EHLO 10.10.13.7
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-smtp.sendgrid.net"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-8BITMIME"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-PIPELINING"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-SIZE 31457280"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-STARTTLS"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS250-AUTH PLAIN LOGIN"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250 AUTH=PLAIN LOGIN"
2019-12-27 18:07:16 SERVER -> CLIENT: 250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS250-AUTH PLAIN LOGIN250 AUTH=PLAIN LOGIN
2019-12-27 18:07:16 CLIENT -> SERVER: STARTTLS
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "220 Begin TLS negotiation now"
2019-12-27 18:07:16 SERVER -> CLIENT: 220 Begin TLS negotiation now
2019-12-27 18:07:16 CLIENT -> SERVER: EHLO 10.10.13.7
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-smtp.sendgrid.net"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-8BITMIME"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-PIPELINING"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-SIZE 31457280"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-STARTTLS"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"
2019-12-27 18:07:16 SMTP -> get_lines(): $data is "250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS250-AUTH PLAIN LOGIN"
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "250 AUTH=PLAIN LOGIN"
2019-12-27 18:07:16 SERVER -> CLIENT: 250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS250-AUTH PLAIN LOGIN250 AUTH=PLAIN LOGIN
2019-12-27 18:07:16 Auth method requested: UNKNOWN
2019-12-27 18:07:16 Auth methods available on the server: PLAIN,LOGIN
2019-12-27 18:07:16 Auth method selected: LOGIN
2019-12-27 18:07:16 CLIENT -> SERVER: AUTH LOGIN
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
2019-12-27 18:07:16 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2019-12-27 18:07:16 CLIENT -> SERVER: YXBpa2V5
2019-12-27 18:07:16 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:16 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
2019-12-27 18:07:16 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2019-12-27 18:07:16 CLIENT -> SERVER: U0cuRUVSd3lUVmxUSWF1ODNFaUUtaFhGUS4yX2MxZjhGWUMxSUs4cGw1a1hsejVlaWVqaWprcUtFYllNODNWNDM3MnE0
2019-12-27 18:07:17 SMTP -> get_lines(): $data is ""
2019-12-27 18:07:17 SMTP -> get_lines(): $str is "451 Authentication failed: Maximum credits exceeded"
2019-12-27 18:07:17 SERVER -> CLIENT: 451 Authentication failed: Maximum credits exceeded
2019-12-27 18:07:17 SMTP ERROR: Password command failed: 451 Authentication failed: Maximum credits exceeded
SMTP Error: Could not authenticate.
2019-12-27 18:07:17 CLIENT -> SERVER: QUIT
2019-12-27 18:07:17 SERVER -> CLIENT:
2019-12-27 18:07:17 SMTP ERROR: QUIT command failed:
2019-12-27 18:07:17 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification is not working after Nagios XI version upgr

Post by ssax »

451 Authentication failed: Maximum credits exceeded

That looks like an issue with your mail provider.

Code: Select all

451 	`Authentication failed: Maximum credits exceeded` 	There is a credit limit of emails per day enforced in error. [Contact support](https://support.sendgrid.com/hc/en-us) to remove that limit.

Code: Select all

https://sendgrid.com/docs/for-developers/sending-email/smtp-errors-and-troubleshooting/
Please contact them and have them investigate.
Locked