Re: [Nagios-users] NRPE - Event handler.

2009-04-20 Thread Luis Fernando Lacayo
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 lflac...@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
lflac...@cps.k12.il.us
__
   In God we trust, the rest we monitor ...




signature.asc
Description: This is a digitally signed message 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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] NRPE - Event handler.

2009-04-18 Thread Jim Avery
2009/4/18 Lacayo, Luis F lflac...@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@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