RESOLVED Event Handlers are not runing or logging. (on WARNING or CRITICAL)

bruce bruce at webfarm.co.nz
Sun Sep 5 17:16:10 CEST 2004


Hi,

After much hacking and slashing of the nagios souce to put debugging code
in where I can see it functioning (yes, I know theres a DEBUG0 and DEBUG3
mode, but it gave too much data for me to locate the problem) I have found
that the reason my event handlers were not working is becuase nagios checked
the status of the host after receiving a CRITICAL state and the check_ping
plugin returns somthing (I dont know what yet) which makes nagios think
the host is down and hence not run the event handler.

I switched the host check plugin to 'check_dummy 0' and restarted nagios
and the moment nagios detected the service broken it ran the handler.


Now all I have to do is work out why the results check_ping are different
to check_dummy in the eyes of nagios (when nagios dosnt take the host down
in the GUI)

I hope this helps someone in the future who has excatly the same problem,
-- 
+------------------------------------------+      \|||/
| Bruce at WebFarm.co.nz       +64 06 7572881 |      (o o)
| Systems Technician                       +---ooO-(_)-Ooo---+
|                                                            |
| WebFarm                           http://www.webfarm.co.nz |
| FreeParking                   http://www.freeparking.co.nz |
+------------------------------------------------------------+

... FreeParking - NZ's best value Domain, WebHosting and email accounts - bar none
... WebFarm - NZ's eCommerce specialists since 1997


On Thu, 2 Sep 2004, Bruce wrote:

> Hi,
>
> I think my email is not working correctly because im not getting
> responses to my questions until I post a follow up (very weird)
>
> Has anyone had any thoughts on my findings below?
>
> Just to refresh the issue,
> Originally I thought Event handlers were not running, however I have
> since found that the event handlers are running but only when a service
> check returns OK when it has been in another state. This is not very
> useful since an event handler should be fixing the occurring problems
> not trying to fix them after they are manually fixed.  Ive included a
> log file of one host/service which experiences the problem (qouted
> below) so that people can see what I mean,
>
> Any thoughts would be appreciated,
>
>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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