Page 1 of 1

Alert email notifications not received

Posted: Wed Feb 15, 2017 8:33 pm
by lansol
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?

Re: Alert email notifications not received

Posted: Wed Feb 15, 2017 11:49 pm
by gormank
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?

Re: Alert email notifications not received

Posted: Thu Feb 16, 2017 8:50 am
by dwhitfield
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

Posted: Thu Feb 16, 2017 11:33 am
by lansol
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.

Code: Select all

/var/spool/mqueue is empty
		Total requests: 0

Re: Alert email notifications not received

Posted: Thu Feb 16, 2017 11:40 am
by rkennedy
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 -

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
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.

Re: Alert email notifications not received

Posted: Wed Mar 01, 2017 2:02 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?