No notifications

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
ottacat
Posts: 2
Joined: Tue Sep 04, 2012 8:56 am

No notifications

Post 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
Attachments
objects.tar
(47.5 KiB) Downloaded 82 times
ottacat
Posts: 2
Joined: Tue Sep 04, 2012 8:56 am

Re: No notifications

Post 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.
User avatar
inventsekar
Posts: 37
Joined: Fri Jul 20, 2012 11:29 am

Re: No notifications

Post by inventsekar »

Appreciating your clear reply of how you resolved this situation...it will be very helpful to lot of people( like me 8-) )
Locked