<!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: [sysmon-help] spawn when a services comes backup</TITLE>
</HEAD>
<BODY>
<BR>
<P> <FONT SIZE=2>OK, since you quoted what I've put into Bugzilla, let me clear what I had in mind there :-).</FONT>
</P>
<P> <FONT SIZE=2>Your concern regarding running external programs is absolutely correct and in place. On the other hand, why would you care about it? :-). If someone uses broken script to perform some check, it's out of your control, it's not a bad design in Sysmon, isn't it? They asked for it ;-)</FONT></P>
<P> <FONT SIZE=2>IMHO, it's valuable to have the possibility of running external programs to check on certain complex things (*SQL inserts, deletes, etc., bandwidth or temperature trends (not very simple thing)). It would greatly improve the value, of already valuable asset such as Sysmon.</FONT></P>
<P> <FONT SIZE=2>I'm not programmer by trade, but I believe that timing issues could be addressed somehow. After all, you ARE allowing exec for notify - why not for check, too?</FONT></P>
<P> <FONT SIZE=2>The other thing is - what to expect from external program? I'd believe that return code is the most preferred way. If it's 0, service is OK, if it's not 0, service is down. Anything coming out to stdout (meaning there was not an error in software, but in service itself) could go as message body, or whatever. Also, you could reserve certain exit codes for external program failures, too.</FONT></P>
<BR>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Marko.</FONT>
</P>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Jared Mauch [<A HREF="mailto:jared@sysmon.org">mailto:jared@sysmon.org</A>]</FONT>
<BR><FONT SIZE=2>> Sent: föstudagur, 13. desember 2002. 15:51</FONT>
<BR><FONT SIZE=2>> To: Simon White</FONT>
<BR><FONT SIZE=2>> Cc: sysmon-help@puck.nether.net</FONT>
<BR><FONT SIZE=2>> Subject: Re: [sysmon-help] spawn when a services comes backup</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> This should be fairly simple to implement, the biggest concern I</FONT>
<BR><FONT SIZE=2>> have is that I hate calling external programs. I keep what I consider</FONT>
<BR><FONT SIZE=2>> 'delicate' track of the time that sysmon spends doing varying</FONT>
<BR><FONT SIZE=2>> tasks.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> execute-on-down and execute-on-up could be easily done.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> (spawn would be alias to execute-on-down)</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> i just don't want some external task to take forever</FONT>
<BR><FONT SIZE=2>> to run and cause the other tests to be all screwed up.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> <A HREF="http://puck.nether.net/bugzilla-2.17.1/show_bug.cgi?id=20" TARGET="_blank">http://puck.nether.net/bugzilla-2.17.1/show_bug.cgi?id=20</A></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> - jared</FONT>
<BR><FONT SIZE=2>[ 8< ]</FONT>
</P>
<P><FONT SIZE=2>Tölvupóstur þessi er frá Margmiðlun hf., Suðurlandsbraut 4, Reykjavík. Fyrirvara og leiðbeiningar til viðtakenda tölvupósts frá Margmiðlun hf. er að finna á vefsíðunni <A HREF="http://www.mi.is/fyrirvari" TARGET="_blank">http://www.mi.is/fyrirvari</A> </FONT></P>
</BODY>
</HTML>