Page 1 of 1

notifications not being sent from server

Posted: Sun Feb 17, 2013 4:59 pm
by KiwiBloke
Hi,

I have a Nagios xi CentoOS vm Appliance running 2012R1.6. I have configured with servers and services and hostgroups.

Notifications are enabled on all hosts and services for Critical and Recovery events.

The notifications are configured to be sent to nagiosadmin (who has email alerts configured). a test alert has been sucessfully sent to the user, so the email subsystem is working.

if i check the services and hosts via "see this host/service in nagios core" it tells me that notifications are enabled.

however...
if I stop one of the lesser important monitored services eg windowstime nagios correctly detects the service as being down, but it doesn't seem to send a notification. When i start the service, nagios shortly detects this, but likewise doesn't send a notification to say its recovered

Any ideas?

Re: notifications not being sent from server

Posted: Mon Feb 18, 2013 8:38 am
by scottwilkerson
Are you leaving the service stopped until the service is in a HARD critical state?

Also, if you click on the nagiosadmin username (top right) and go to Notification Preferences, are all boxes selected? Under Notification Methods is at least one method selected?

Re: notifications not being sent from server

Posted: Tue Feb 19, 2013 3:56 pm
by KiwiBloke
Hi,

I rechecked the notification setting for nagiosadmin and found that I had not checked "service critical". It is now ticked.

I also didn't realize that before Nagios sends an alert it waits until it has attempted 5 times to recheck the service before marking the state as hard (which makes sense to me now).

So, now that i have ticked all the correct boxes and tested and waited long enough for a service/host state to turn hard I do indeed get alerts. I also get an alert when the service/host has recovered, so all very good.

Thanks for your help. Every day I learn something new about Nagios?! :roll:

Cheers,

KB.

Re: notifications not being sent from server

Posted: Wed Feb 20, 2013 10:45 am
by slansing
Excellent, by the way on this point:
I also didn't realize that before Nagios sends an alert it waits until it has attempted 5 times to recheck the service before marking the state as hard (which makes sense to me now).
You can modify this in the alert settings tab.