Page 1 of 1
No email notify for new host
Posted: Wed May 28, 2014 2:19 pm
by hellb0y77
I defined new host in nagios, but when service and host state is critical or down, Nagios does not send email notification, which files should I change?
Re: No email notify for new host
Posted: Wed May 28, 2014 2:24 pm
by eloyd
Re: No email notify for new host
Posted: Thu May 29, 2014 10:23 am
by tmcdonald
In addition, you might be sending emails but they are not routing properly. Check your /var/log/maillog for possible errors.
Re: No email notify for new host
Posted: Fri May 30, 2014 8:10 am
by eloyd
You can also do this to make sure that Nagios is even trying to send a notification in the first place:
Code: Select all
grep NOTIFICATION /usr/local/nagios/var/nagios.log
If you don't see any results, then Nagios's notification systems aren't even being triggered. If you see things like the following example, then it's trying, but the emails aren't getting to you.
Code: Select all
SERVICE NOTIFICATION: twitter;Bitnetix:WWW;Load;OK;notify-service-by-twitter;OK - load average: 0.37, 0.39, 2.47
(Note: We have a twitter notification thingy, so don't get hung up if you don't see "twitter" in your results.)
Re: No email notify for new host
Posted: Fri May 30, 2014 11:01 am
by slansing
Give us a holler when you have the above results hellb0y, on the note of checking your maillog, on a centos/rhel/most standard linux based systems it is located at: