Using Event Triggers & Email

Hi,

I have setup an event trigger to monitor for when event id 9688 is logged in the application log on an exchange server, which is working fine.

The action of the trigger is to run a vbs script which in turn emails me. This is also working fine, however at the moment the subject and message body of the email are just the text that I have entered.

I'd like to be able to include the actual description of the logged event as it provides me with information that is useful.

The vbs script currently looks like this:




Set objEmail = CreateObject("CDO.Message")
objEmail.From = "joe@home.net"
objEmail.To = "bob@builder.com"
objEmail.Subject = "Critical Event Logged"
objEmail.Textbody = "Event 9688 has been logged in the Application log. This indicates that the Microsoft Exchange databases are close to, or have reached their limit of 75GB. Once this limited is reached, the databases will dismount on a regular basis."
objEmail.Send

Open in new window

LVL 1
0writerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Malli BoppeConnect With a Mentor Commented:
You need to see 3rd party tools to get the event log  information.One of the tools that I have used in the past is eldump and blat to send an email.
0
All Courses

From novice to tech pro — start learning today.