Dirk Bulinckx.
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, June 12, 2006 8:16 PM
To: Servers Alive Discussion List
Subject: [SA-list] Can e-mail alerts include attachments?
Is it, or will it become, possible to have the SMTP e-mail alert send an
attachment?
On some of our hosts (usually routers) we have a batch file
that is executed when a host goes down. In the SA alert I pass:
C:\Data\SATrace.bat %h "%p"
Where %h is the SA variable for the host, and
the %p is the SA variable for the pretty name (surrounded in quotes to handle
the spaces for the batch file).
Here is the batch file:
for /f
"tokens=2-4 delims=/ " %%a in ('date/t') do set date=%%c%%a%%b
for /f
"tokens=1-2 delims=: " %%a in ('time/t') do set time=%%a%%b%
md
\\ServerName\Share\SAliveScriptResults\%2
tracert -d %1
>\\ServerName\Share\SAliveScriptResults\%2\%date%_%time%_%1.txt
ping %1
>>\\ServerName\Share\SAliveScriptResults\%2\%date%_%time%_%1.txt
Then,
I also send an e-mail alert to be processed. Right now, when there is an outage,
we know we can go to \\ServerName\Share\SAliveScriptResults\Host Name and get
the result file, but it would be nice that when my Alerts run (1 run SATrace and
2 send e-mail), that the e-mail could also include the attachment.
I
suppose I could use blat or something on a scheduled basis to process them, but
I'd like to stay in SA.
Which brings me to another question... When SA
process the alerts actions, does SA wait until each alert completes? In other
words, for my example, when SA finds a host down, it will run my batch file,
which will vary in how many seconds it will take to complete. Will the second
alert action (my e-mail) wait until the first one completes?
My question
may be unique here, and since we already know how to handle this function, Dirk
or anyone else can just say, "no can't do that right now or in the near future",
and that is completely fine, as this is not a priority for
me.
Thanks.
Jamie
Jenkins
To
unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected]
If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message. Doing this will get you
removed from the list.
To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected]
If you use auto-responders (like out-of-the-office messages), then make sure that they are not send to the list nor to the individual members of the list that send a message. Doing this will get you removed from the list.
