Recently, i began working a bit with Microsoft Operations Manager on a few issues related to the Management Pack for Exchange Server 2007 for MOM 2005. One of the things that drove me crazy right off the bat was my inability to actually see what script it was running when an alert failed.
Lets take a look at the following alert:
Type: ErrorDescription: One or more of the OWA Connectivity tests failed. Detailed Information:-----------------------------------------------Error: The test received an unexpected response to an OWA request.URL: https://server.com/
In MOM 2005, you will see the alert like this. Pay close attention to the section that has been circled below:
This indicates exactly where we can find the rule that fired for a failed alert.
Next lets open up the MOM Administrators Console.-Expand Management Packs\Rule Groups\Microsoft Exchange Server\Exchange 2007
Now you will use the Rule information gathered above to locate the Rule that failed:Notice the path to the rule on the left, and the actual rule highlighted on the right.
Now double click on the Rule:
Click on the Response, and click Edit:
Select the cmdletCommand and click Edit Parameter:
Now copy the contents of the Value field and paste them into notepad or run them in a powershell window
Now you can work with the powershell command in powershell to determine why it failed
So from this i can tell the ExternalURL we are going to, is the wrong URL... (going to / instead of /owa)
First i list off the ExternalURL with "get-OWAVirtualDirectory "owa (default web site)" | fl *" and then set the ExternalURL to the correct value with set-OWAVirtualDirectory:
And then finally rerun the test to make sure the problem is fixed:
Success! Now I can resolve the MOM alert and were good to go.