I could suggest writing an external COM check. This would then do the check and pass the needed info (for the body of the mail) to SA.
Woodstone can do this as a custom programming job. Contact me off-list if you want to discuss this some more. dirk. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wed Sep 10 1:05 AM To: [EMAIL PROTECTED] Subject: [SA-list] SMTP alerting and attachments As a possible feature request, would it be possible to have the ability to specify attachment/s with SMTP alerts? Ideally, I would love to have the option to either (1) Add a specified file/s as an attachment, and (2) Use the contents of a specified file as the body of the SMTP message. The latter is the more important feature for me at this stage. Here's my situation which may help explain the request or prompt someone to point me to a better way of achieving my desired result... I have approx. 30 identical systems scattered around the country I need to monitor and provide alerting on. The vendor provides an application that sits on a central PC and will communicate to the systems and produce a simple log file with some basic availability and performance statistics. We have written a web app to produce a "helpdesk-friendly" system status web page based on the log file and the same web app will produce a simple 1-2 line text file (we 're calling this our alert trigger file) in the event that a device 'fails' (ie. goes offline or the performance statistics drop below a specified threshold). The trigger file name is unique for each of the 30 systems we are monitoring. If there is no problem, the directory containing these trigger files is empty. My plan was to have a SA host check for each of the 30 devices using an external check that called a batch file that simply checked for the existence of a trigger file that corresponds to the device specified in the host check, and if the file exists, return an errorlevel that causes SA to class the host check as failed and send an SMTP email alert. What I want to do is get the contents of the trigger file into the body of the SMTP alert. I can achieve the result by using a command-line SMTP such as Blat! (http://www.interlog.com/~tcharron/blat.html) to send the email alert and use the trigger file contents as the message body but if I use Blat! then I have no record in my SA logs of the alerting process. This is important to us in the event we need to prove that alerts were sent (and to who and at what time, etc.) for SLA purposes. The email addresses that the alerts will be sent to will be different for each device. I'm also wanting to use a generic script for the trigger file check and pass variables from the SA host entries to it to save me having to create and maintain a script for each host entry. For reference, here is what the trigger file contents look like: 8/09/03 11:54:17 overall success rate 50 % 8/09/03 11:54:17 barcode read rate 50 % Any thoughts or suggestions would be appreciated. Cheers, Anthony To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive
