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.
Notifications are not coming after hard resetting NagiosXI
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notifications are not coming after hard resetting Nagios
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.
References:
Nagios XI Notification Problems
PHPMailer - Troubleshooting Using Debug Logging
Nagios XI Log Locations and Descriptions
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications are not coming after hard resetting Nagios
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
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications are not coming after hard resetting Nagios
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.
Re: Notifications are not coming after hard resetting Nagios
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.
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.
Re: Notifications are not coming after hard resetting Nagios
I found this event in the log.
I ran the restore script, which fixed the Notification issue. Notifications are coming through just fine. Appreciate your help.
Code: Select all
SQL: SQL Error [nagiosxi] :</b> Table './nagiosxi/xi_events' is marked as crashed and should be repaired.-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notifications are not coming after hard resetting Nagios
Hi @Pselvin,
Thank you for using the Nagios Support Forum.
Your welcome and the update on the solution is appreciated. I will go ahead a close this topic.I ran the restore script, which fixed the Notification issue. Notifications are coming through just fine. Appreciate your help.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!