Hey everyone,
I'm having an issue where notifications are not being sent out correctly from my Nagios XI instance. I've followed all of the troubleshooting steps outlined in the following document: https://support.nagios.com/kb/article.php?id=36. More specifically here's what I've done
1) created a contact (not user) named 'networking' with the following Alert Settings: https://i.imgur.com/FZEqSTy.png -- the user is assigned the 'notify-host-by-email' and 'notify-service-by-email' notification dispatchers
2) created a contact group named 'Infrastructure Notifications' with the 'networking' contact added as a contact. The contact group is flagged as active -- https://i.imgur.com/tCbBS9F.png
3) created a service check called 'NGINX reverse proxy service' with the following Alert Settings: https://i.imgur.com/kS0rXHJ.png -- the 'Infrastructure Notifications' contact group is assigned to the service
4) Verified emails are being sent correctly under Admin -> Email Settings -> Send a Test Email
I've sent a custom alert test by going to a particular service and then selecting Advanced -> Send custom notification. The alert shows up under Reports -> Notifications with the correct dispatcher yet the email never comes in. If I check the 'Forced' box under Send Custom Notification, then the email is sent out. This leads me to believe something is marked inactive or I have an incorrect time window somewhere but I can't seem to figure out where.
Any help would be much appreciated. Thanks!!
Notifications not sending for service + host outages
-
bkloosterboerterso
- Posts: 1
- Joined: Wed Mar 20, 2019 12:51 pm
Re: Notifications not sending for service + host outages
Do you see any errors in the /var/log/maillog file when the emails are generated?
In the XI GUI, go to the Admin > Email Settings menu, do you have a valid From address set?
For the the commands you are using, you may have to specify the from address in the command.
To do that, go in to the Core Config Manager > Commands menu and edit the following commands.
In the command line, right after the /bin/mail command, put in the following (Adjust my example to a valid address)
so it looks like this
Leave the rest of the command alone.
Save and Apply the config and that will change the from address for contacts.
Test to see if that fixes the issue.
In the XI GUI, go to the Admin > Email Settings menu, do you have a valid From address set?
For the the commands you are using, you may have to specify the from address in the command.
To do that, go in to the Core Config Manager > Commands menu and edit the following commands.
Code: Select all
notify-host-by-email
notify-service-by-emailCode: Select all
-r [email protected]Code: Select all
|/bin/mail -r [email protected] -s"**Leave the rest of the command alone.
Save and Apply the config and that will change the from address for contacts.
Test to see if that fixes the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!