No email notify for new host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
hellb0y77
Posts: 18
Joined: Wed May 28, 2014 3:14 am

No email notify for new host

Post 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?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: No email notify for new host

Post by eloyd »

Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: No email notify for new host

Post by tmcdonald »

In addition, you might be sending emails but they are not routing properly. Check your /var/log/maillog for possible errors.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: No email notify for new host

Post 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.)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: No email notify for new host

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

Code: Select all

/var/log/maillog
Locked