Page 1 of 1

Notifications are not coming after hard resetting NagiosXI

Posted: Tue Mar 05, 2019 11:34 am
by Pselvin
Hi Team,

Email and Mobile notifications are not working after hard resetting NagiosXI server. I did check Notification settings and options and it seems like looking good to me.

Please assist.

Re: Notifications are not coming after hard resetting Nagios

Posted: Tue Mar 05, 2019 2:28 pm
by benjaminsmith
Hello @Pselvin,

Assuming notifications are enabled and set correctly, please tail the log file then send a test message and post the output for us to review. You can try testing both mail methods ( sendmail or smtp). Also, it's not uncommon for the username and password for smtp to be incorrect, so please make sure those are valid.

Code: Select all

tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log
References:
Nagios XI Notification Problems
PHPMailer - Troubleshooting Using Debug Logging
Nagios XI Log Locations and Descriptions

Re: Notifications are not coming after hard resetting Nagios

Posted: Tue Mar 05, 2019 3:23 pm
by Pselvin

Code: Select all

[root@EPVANAGIOS01 tmp]# sendmail [email protected] < /tmp/email.txt
[root@EPVANAGIOS01 tmp]#

Code: Select all

[root@EPVANAGIOS01 ~]# tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log
tail: cannot open `/var/log/maillog' for reading: No such file or directory
==> /usr/local/nagiosxi/tmp/phpmailer.log <==
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate. (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)
SMTP Error: Could not authenticate.<p>SMTP server error: </p>
 (method=smtp;host=mail.atgstores.com;port=25;smtpauth=true;security=none)

Re: Notifications are not coming after hard resetting Nagios

Posted: Tue Mar 05, 2019 5:16 pm
by benjaminsmith
Hi @Pselvin,

It looks like it phpmailer is not able to authenticate with the smtp server. Are you sure you have the correct settings? Can you post a full screen shot of Admin > Manage Email Settings.

Thanks.

Re: Notifications are not coming after hard resetting Nagios

Posted: Wed Mar 06, 2019 2:58 am
by Pselvin
We attached the mail settings screen shot and also the connectivity between mail server and nagios. Connectivity looks good between the servers.

Re: Notifications are not coming after hard resetting Nagios

Posted: Wed Mar 06, 2019 7:38 am
by Pselvin
Please see the screenshot attached.

Please note that i am able to receive the actual Test email from Nagios but, Only service and Host notifications are not coming through.
-----------------------------------------------------------------------------
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, March 6, 2019 5:32 PM
To: Selvin, Prince - Prince <[email protected]>
Subject: Nagios XI Email Test

This is a test email from Nagios XI
------------------------------------------------------------------------------

I am able to see the Notifications are being sent from Nagios to the email addresses however, it is still failing.

Re: Notifications are not coming after hard resetting Nagios

Posted: Wed Mar 06, 2019 9:18 am
by Pselvin
I found this event in the log.

Code: Select all

 SQL:     SQL Error [nagiosxi] :</b> Table './nagiosxi/xi_events' is marked as crashed and should be repaired.
I ran the restore script, which fixed the Notification issue. Notifications are coming through just fine. Appreciate your help.

Re: Notifications are not coming after hard resetting Nagios

Posted: Wed Mar 06, 2019 10:26 am
by benjaminsmith
Hi @Pselvin,
I ran the restore script, which fixed the Notification issue. Notifications are coming through just fine. Appreciate your help.
Your welcome and the update on the solution is appreciated. I will go ahead a close this topic.

Thank you for using the Nagios Support Forum.