Notifications are not coming after hard resetting NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Pselvin
Posts: 51
Joined: Tue Dec 13, 2016 1:28 pm

Notifications are not coming after hard resetting NagiosXI

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Notifications are not coming after hard resetting Nagios

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Pselvin
Posts: 51
Joined: Tue Dec 13, 2016 1:28 pm

Re: Notifications are not coming after hard resetting Nagios

Post 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)
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Notifications are not coming after hard resetting Nagios

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Pselvin
Posts: 51
Joined: Tue Dec 13, 2016 1:28 pm

Re: Notifications are not coming after hard resetting Nagios

Post by Pselvin »

We attached the mail settings screen shot and also the connectivity between mail server and nagios. Connectivity looks good between the servers.
You do not have the required permissions to view the files attached to this post.
Pselvin
Posts: 51
Joined: Tue Dec 13, 2016 1:28 pm

Re: Notifications are not coming after hard resetting Nagios

Post 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.
You do not have the required permissions to view the files attached to this post.
Pselvin
Posts: 51
Joined: Tue Dec 13, 2016 1:28 pm

Re: Notifications are not coming after hard resetting Nagios

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Notifications are not coming after hard resetting Nagios

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked