<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Passive servicecheck on NT </TITLE>
</HEAD>
<BODY>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">Sorry, but the attached zip files was filtered by the mail server.</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Is there</FONT> <FONT COLOR="#000000" SIZE=2 FACE="Courier">an</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> ftp or web site where I can found this script and maybe some other good script which I can use to monitor our environment?</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"></FONT> </P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">Thanks for your help.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Yes.  Thanks to Tom DeBlende who steered me in the right direction.  You can</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> use plink (part of putty) to dump commands to the linux box using ssh.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> The script Tom refers to below is a Citrix checking VB script. It and plink</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> are attached.  What Tom's script does is pull the data from a registry</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> value, formulate a proper nagios command enclosed in a proper linux command</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> which sends the nagios command to the external command file via a plink</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> command.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Hope that helps,</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Dean</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Dear Dean,</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> First of all: please find attached the zip file that contains:</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> 1) The script (you will have to change some variables in the beginning </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> of the script).</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> 2) The plink.exe file used to make the SSH connection to the Nagios </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> server.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Running this as a scheduled task is a pain to set up, as you will have </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> to make sure that the hostkey is in place in the registry in the </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> default user profile </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> [HKEY_USERS\.DEFAULT\Software\SimonTatham\PuTTY\SshHostKeys]. In other </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> words, you will have to log in with the user account that you will use </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> to run the scheduled task, run plink.exe once to connect to the Nagios </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> server, and then copy its registry key to the location shown above.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Don't forget to create the passive service on the Nagios setup with </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> the exact same service name. Might be best to "tail -f" the external </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> command file first to see what's arriving though :-)</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> -----Original Message-----</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> From: Wiesner, Thomas [<A HREF="mailto:Thomas.Wiesner@db">mailto:Thomas.Wiesner@db</A>...] </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Sent: May 8, 2003 7:09 AM</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> To: 'nagios-users@li...'</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Subject: [Nagios-users] Passive servicecheck on NT</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier">  </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Hi all,</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> I evaluate the current features of Nagios and have one simple question. I</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> know the possibility of passive service checks on a Unix host, but is it</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> also possible to implement a passive service check on a Windows host?</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> What I need is in interface for my scripts on the Microsoft world to</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> transfer and display the result to the Nagios host.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Thanks for your help.</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> Thomas </FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Courier"> </FONT></P>
<BR>

<P ALIGN=LEFT><A NAME="_MailAutoSig"><FONT COLOR="#000000" FACE="Arial">Mit freundlichen Grüßen</FONT></A><FONT COLOR="#000080" FACE="Arial"></FONT> </P>

<P ALIGN=LEFT><B><FONT COLOR="#000080" SIZE=2 FACE="Arial">Thomas</FONT></B> </P>

<P ALIGN=LEFT></P>

</BODY>
</HTML>