If you're running on a 2008 R2 server with the new (V2) task scheduler, you can 
just set up a scheduled task that will send you an email whenever there's a 
dismount event logged.

From: Anthony Goraczko [mailto:[email protected]]
Sent: Friday, December 10, 2010 10:21 AM
To: MS-Exchange Admin Issues
Subject: RE: mounted/dismounted

You could write a powershell script that queries the mounted status of the 
databases and have it send you an e-mail or a text message if the state goes to 
dismounted.  You can then schedule the powershell script to execute every few 
minutes or so using scheduled tasks.

The way I approached it in my 2007 environment was to export the results of the 
powershell command Michael posted to a CSV file one of the Hub Transport 
servers using a scheduled powershell script.  Then on the Hub Transport server 
I had another powershell script that would import the contents of the CSV file 
to an array, apply some logic to exempt any recovery databases, and send our 
Exchange Admin list and our cell phones an e-mail if the state of any of the 
databases went to dismounted.

The solution wasn't perfect, but it worked for our needs up until we moved to 
2010, when we also added System Center Operations Manager to the environment.  
Now it handles all of the alerts for us.

--Anthony

Anthony Goraczko
University Technology Services
Division of Information Technology
Florida International University
________________________________
From: Paul Cookman [[email protected]]
Sent: Friday, December 10, 2010 6:11 AM
To: MS-Exchange Admin Issues
Subject: mounted/dismounted
Any good free ideas for monitoring ex2007 databases being mounted/dismounted?

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe exchangelist

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe exchangelist
**************************************************************************************************
Note: 
The information contained in this message may be privileged and confidential 
and 
protected from disclosure.  If the reader of this message is not the intended  
recipient, or an employee or agent responsible for delivering this message to  
the intended recipient, you are hereby notified that any dissemination,   
distribution or copying of this communication is strictly prohibited. If you  
have received this communication in error, please notify us immediately by  
replying to the message and deleting it from your computer. 
**************************************************************************************************

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe exchangelist

Reply via email to