Page 1 of 1

No notifications

Posted: Tue Sep 04, 2012 9:08 am
by ottacat
I am new to Nagios but I'm unable to get even basic notifications to work

I have setup a basic log monitor using check_logfiles. It works successfully and when a line that matches is logged the service goes into alert. When the service is re-checked 1 minute later it goes out of alert. The alert log clearly shows the service went into and out of alert.

However no notifications are sent. I have the service set to send notifications with a delay of 0. The notifications go to a contact called nagios as well as the admins group which contains the contact nagios. The notification timeframes are all the built-in 24x7. The notification command I am executing is a simple command that echos a line of text into a text file in /tmp.

If I manually trigger the notification it works. However it never seems to get triggered when the service actually goes into alert.

Is there any way I can enable some level of debug to understand the processing logic when it gets an alert and decides whether to send a notification.

I've attached my nagios config file and all the config files in my objects directory. I'd greatly appreciate any help on this as I'm quite puzzled.

Many thanks,

Tim

Re: No notifications

Posted: Tue Sep 04, 2012 11:09 am
by ottacat
Figured it out. The service was using a template that had 4 retries. The nature of a log event is it comes once but typically isn't present if the plugin does a retry. Thus the alert was going into a SOFT state and then being cleared. I created a new template for these types of checks with no retries and now it works. Upon detection it immediately goes into a HARD state and issues the notification.

Re: No notifications

Posted: Wed Sep 05, 2012 1:48 pm
by inventsekar
Appreciating your clear reply of how you resolved this situation...it will be very helpful to lot of people( like me 8-) )