NRPE - Event handler.

Luis Fernando Lacayo lflacayo at cps.k12.il.us
Mon Apr 20 16:26:49 CEST 2009


Thank you sir..  that is exactly what I was looking for.. 

thank. 

Luis

On Sat, 2009-04-18 at 19:31 +0100, Jim Avery wrote:

> 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

-- 
______________________________________________________

Luis Fernando Lacayo
Chicago Public Schools
Senior Unix Administrator
ITS/ UNIX Infrastructure
Office: 773-553-3835
Cell: 773-203-4493
lflacayo at cps.k12.il.us
______________________________________________________
               "In God we trust, the rest we monitor ..."


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090420/990f7194/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090420/990f7194/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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