The %e parameter that you can use within the "command to execute" will
contain the result.
For a URL check this could be:
    404 Not found     (in case of a .. 404 error)
    or
    Timeout.    (in case of a ... timeout)
 
 
So execute a command, and make it a BAT file and within the BAT file (or
VBS/EXE/COM/...) check for the value of the received parameter and based on
that value execute a different command.
 
 


dirk.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Barry George
Sent: Fri Aug 15 6:56 PM
To: Salive List
Subject: [SA-list] Execute based on response


Hi All,
 
Trying to think of a way to execute a command based on a response from a
host check. A website (membership based) suffers from two conditions needing
different actions. If I get a 404 then IIS needs to be restarted (got that
one in already) but if I get timeouts I need to restart SQL server service.
 
I can have one command execute before the other based on the number of times
down, but it would be great to be able to execute a given command based on
the response SA gets back from its check. 
 
Anyone see a way around this till Dirk can add it to his code?   :-)
 
Thanks
Barry

<<attachment: winmail.dat>>

Reply via email to