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.
But I suppose you would like to see an additional option in the WHEN parts
of the alert? Were you can say that it (Servers Alive) should also check if
the %e (extra info) contains a specific string.
(if the field is empty then alert is execute as it would now, just based on
the "normal" WHEN condition being number of downs, and if the field contains
something and the entry is down, the it should check both the "normal" WHEN
condition and the "specific string within %e" condition.)
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>>
