Home > MOM > Exchange Management Pack: Script error for Mapi Logon and more

Exchange Management Pack: Script error for Mapi Logon and more

I recently was updating some documentation on our MOM implementation when I found an issue in the Exchange Management Pack.  From what I can tell this issue existed in the past two management packs, maybe even others.  However, I will outline what you need to do in order to correct the issue.
I wouldn’t say this is a CRITICAL problem; However, it really shouldn’t have been missed by the QA team because it is essential for companies who may have a large implementation of Exchange and or add/remove Exchange servers often from their environments.
To make changes to this script, you have to first locate the rule that executes it:
Microsoft Exchange Server>Exchange 2003>Availability and State Monitoring>MAPI Logon Check and Availability Reporting
Check mailbox store availability – MAPI logon test.
This is the rule that launches the script with mistakes in it.  Go to the response tab and edit the script.  Copy the script code into an external editor or notepad and you will notice the following mistakes:
// Exchange MOM 59987 inform Attempting to publish Exchange Management Pack data
// Exchange MOM 59988 inform Please run Exchange Management Pack Configuration Utility
// Exchange MOM  59990 error Cannot measure server availability: error verifying pub key
The above information is taken from the description of the script and the events that it will generate.  Now I thought maybe the author just mistyped the description, but if you search the script for these events you will find them.  If you create a event view in MOM you will also find these events (if the rules are enabled and you have Exchange in your environment).  Mostly you will probably only find the event asking you to run the Exchange configuration wizard.
Why are these event ids important?  Because this script generates those events and there are other rules in the Exchange management pack that look for these events (without the 5 in front of the 9’s).
So simply remove the 5’s and then save the script.  This should correct the issue.
Another rule that was acting odd is this one:
Microsoft Exchange Server>Exchange 2003>Availability and State Monitoring>MAPI Logon Check and Availability Reporting
Test mailbox residing on the wrong server
I enabled this rule (had disabled it before) and I got several alerts that were raised by this rule.  However, the description was All logins were successful.  I was confused, so I looked at the rule and noticed it had a regular expression for the event id’s.  I modified it so that the only event id it was looking for was 9996 (which is the event that will tell you that a MOM mailbox is residing on the wrong server).  After I changed it, I was able to see the few servers that had this condition.  So you might want to check this rule and make the same changes.
Finally, I was looking at some of the default public views for Exchange and found one that listed nothing because the criteria is incorrect.  The view is here:
Public Views>Microsoft Exchange Server>Exchange 2003>Server Configuration and Security>Configuration Information
Exchange Servers not in a cluster
I attached a screen shot of the properties of this view (momview).  I didn’t dive into trying to fix this, but I assume since it is looking for 9002 that this is just the Exchange configuration that gets dumped from the script that runs daily.  If you create a computer group that has non clustered Exchange servers, then you can change the criteria so that only the 9002 events from that computer group show up here.  My point is that the view is broken.  I don’t think it really adds that much value, but it’s worth pointing out that it doesn’t work and should probably be removed or fixed.
Categories: MOM
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: