Warning

 

Close

Confirm Action

Are you sure you wish to do this?

Confirm Cancel
Member Login

Site Notices
Posted: 9/29/2011 8:55:30 AM EST
Im looking for a way to send a alert email via a script that detects something like a dirty or abrupt shutdown of a windows server based on the event log. lets say you have a exchange 2007 ccr cluster and for what ever reason the Active node crashes and since the fail overs happen so quickly most of the monitoring software such as like WUG or nimsoft dont pick it up because it is outside of the polling cycle. I am looking for a simple script that will route a simple smtp message that says "server mail01a of vitualmail01 has crashed/rebooted due to *_*" the blank would be filled in by a event from the system or app log. so what i am looking for a is a script that will:

send a message via a predetermined smtp server
Have a subjet that says what its for
then have a body that is pulled from a event n the server that crashed logs such as system or app.

Im not looking for someone to do this for me, just looking to be pointed in the right direction, any help would be greatly appriciated.
Link Posted: 9/29/2011 1:24:46 PM EST
if u have server 2008, use the task scheduler. it can key off the windows event logs.
Link Posted: 9/29/2011 4:28:57 PM EST
Originally Posted By NimmerMehr:
if u have server 2008, use the task scheduler. it can key off the windows event logs.


its a mix of 2008 and 2003 in a mixed environment of excchange 2007 and 2010, so that would work for the 2010 servers but not the 2007 ones. but thanks for the reply it will help
Link Posted: 10/1/2011 1:38:34 PM EST
[Last Edit: 10/1/2011 1:46:30 PM EST by ziegenbock]
Do u work 4 equifax? http://www.petri.co.il/how-to-use-eventtriggersexe-to-send-e-mail-based-on-event-ids.htm
Top Top