<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Thank you sir..  that is exactly what I was looking for.. <BR>
<BR>
thank. <BR>
<BR>
Luis<BR>
<BR>
On Sat, 2009-04-18 at 19:31 +0100, Jim Avery wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
2009/4/18 Lacayo, Luis F <<A HREF="mailto:lflacayo@cps.k12.il.us">lflacayo@cps.k12.il.us</A>>:
> 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 -
<A HREF="http://nagios.sourceforge.net/docs/3_0/eventhandlers.html">http://nagios.sourceforge.net/docs/3_0/eventhandlers.html</A>

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
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
______________________________________________________

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


</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>