Hello,
We receive no email alert notifications when hosts/services are down. We have tried sendmail/smtp option under email settings. We have tried Google SMTP relay as well as external SMTP server. In both instances, we receive the test notification successfully. However, no email alerts are received.
Using Nagios XI 5.4.2
Any insight?
Alert email notifications not received
Re: Alert email notifications not received
Go to home, and at the bottom left take a look a notifications. Are the missing ones listed? If not, I'd guess the settings aren't quite what they need to be. If they are, can you send mail manually? You can use mail, sendmail or whatever
sendmail -v <user@whatever>
testing
.
I seem to recall (I might be wrong) that if you change the admin, notification settings, a nagios restart is a good idea. service nagios restart, or systemctl restart nagios depending on OS version.
mailq?
sendmail -v <user@whatever>
testing
.
I seem to recall (I might be wrong) that if you change the admin, notification settings, a nagios restart is a good idea. service nagios restart, or systemctl restart nagios depending on OS version.
mailq?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Alert email notifications not received
For clarification of @gormank's helpful post, we'd like to see the output of the mailq command in a code block. Any other errors (in code blocks as appropriate) or screenshots would also be helpful.
Re: Alert email notifications not received
Tested sendmail commandline and received message.
Rebooted a monitored device. Registered device down/up in event log. However in notifications, there was nothing registered. Below is mailq output.
Rebooted a monitored device. Registered device down/up in event log. However in notifications, there was nothing registered. Below is mailq output.
Code: Select all
/var/spool/mqueue is empty
Total requests: 0Re: Alert email notifications not received
Get the Email settings to a working order, and then send a test email. If it works, and it's appearing under Home -> Notifications - then it's most likely your database is corrupt.
Run the following script -
If that's not it, navigate to Admin -> Manage Users -> Find the user, and masquerade as them -> Click their username in the top right -> Make sure all of the notification options are enabled on the pages within the left panel.
Run the following script -
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
Former Nagios Employee
Re: Alert email notifications not received
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee