debug notifications

Nicolas Laurance nlaurance at zindep.com
Wed Jan 28 18:36:39 CET 2009


Marc Powell a ecrit:

First thank you for your answer

> 
> Nagios doesn't believe it's supposed to send notifications. Either the  
> notification_options for the host/service or contact don't include the  
> notification type you are trying to send, their notification period  
> doesn't include the time they're trying to be sent or the host/service  
> isn't reaching a HARD state are the three most likely reasons.

the services hit the HARD state, I see this in the log

  If you
> want another pair of eyes to help verify, you'll need to post those  
> parts of the config (host/service definition, contactgroup definition,  
> contact definition, timeperiod definition, nagios.log entries related  
> to the host/service your troubleshooting, etc).
> 

I have sent the config used as a first reply


> You could also take a peek at objects.cache (how nagios interpreted  
> the config files) and status.dat (current information about hosts/ 
> services including changes made via the CGI's) and verify that they  
> are how you expect them to be.
> 
I will, thank you for the hint

I'm in production, it used to send notification.
There must be smthg wrong with the config

> Pretty much your only other option, if you're sure these settings are  
> correct, is to enable debug mode. With nagios-2.x, that means a  
> recompile, passing one or more of the following flags to ./configure --
> 
> --enable-DEBUG0 shows function entry and exit
> --enable-DEBUG1 shows general info messages
> --enable-DEBUG2 shows warning messages
> --enable-DEBUG3 shows scheduled events (service and host checks... etc)
> --enable-DEBUG4 shows service and host notifications
> --enable-DEBUG5 shows SQL queries
> --enable-DEBUGALL shows all debugging messages
> 
> --
> Marc
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list