NRPE - Event handler.
Jim Avery
jim at jimavery.me.uk
Sat Apr 18 20:31:46 CEST 2009
2009/4/18 Lacayo, Luis F <lflacayo at cps.k12.il.us>:
> Good Morning all...
>
> I have a question, that someone out there might be able to help me with.
>
>
> I want to setup an event handler, to restart a windows service if a
> service changes to an "UNKNOW" Status. I am not sure of how to set this
> up on the services.cfg side.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> Luis
Hopefully the documentation page explains it well enough -
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html
If you look at the example script there, I guess you pretty much need
to swap CRITICAL and UNKNOWN in the "case" statement to achieve what
you're after, and it shows what you need in your service definition
too.
hth,
Jim
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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