Alert email notifications not received

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lansol
Posts: 5
Joined: Thu Jun 26, 2014 2:58 pm

Alert email notifications not received

Post 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?
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Alert email notifications not received

Post 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?
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

Post 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.
lansol
Posts: 5
Joined: Thu Jun 26, 2014 2:58 pm

Re: Alert email notifications not received

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Alert email notifications not received

Post 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.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Alert email notifications not received

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
Locked