Hi gman,
To start you will need to create a powershell script that gets the data you
are interested, either the mailbox you want to test or generates a list of
mailboxes that are over the limit. Then there are several options on how to
proceed:
You could simply write an event log on the server if over the limit. For
this approach you would use two rules, one rule would use
System.CommandExecuterPropertyBagSource to launch powershell in the Exchange
Context and run your powershell script. That script would write an event
log (MOM.ScriptAPI) with the mailboxes over the limit. In Operations
Manager 2007 R2 you can use powershell directly via
Microsoft.Windows.PowerShellPropertyBagProbe. Then a Second rule would check
the event log, and find the event dropped by your powershell script and
alert based on the event.
A little more elegant but complex method would be to have the powershell
script return the data via a property bag, and then have a condition
detection module check the results of the property bag and raise an alert
based on the property bag conditions.
Some good sources for how to write workflows in Operations Manager:
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/OM2007_AuthGuide.doc
http://www.authormps.com/dnn/Home/tabid/36/Default.aspx
http://technet.microsoft.com/en-us/library/dd362519.aspx
--
Steven Halsey [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Post by gmanTrying to find out how to monitor an Exchange mailbox and alert when the
mailbox item count is above a threshold value. This info is accessible from
the Exchange Shell command "Get-MailboxStatistics <mailbox>" , property
"ItemCount". I'm wondering if someone knows how to create this
rule/monitor
(SCOM 2007 SP1)?
Thanks for any hints.