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 = "firstname.lastname@example.org"
objEmail.To = "email@example.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."