Fix: Alert for "Send Test Message" monitor from the MSMQ 2003 Management Pack in Systems Center Operations Manager 2007

KBJust an FYI on a new Knowledge Base article we published this morning for SCOM 2007:

=====

Symptoms

The Microsoft Message Queuing 2003 Management Pack (MSMQ 2003 MP) for Operations Manager 2007 R2, Version 6.0.6615.0, has an error in the script "QueueSendTestMessage.vbs". This script is called by the "Queue: Send Test Message" monitor that is targeted at the "MSMQ 2003 Queue" class. This monitor is disabled by default, but for any queue where this monitor has been enabled by override, the script will fail and the monitor will change to a "critical" state.

Cause

The script has a function that calls the variable "iTotalSeconds". This variable is not declared or initialized in the script.

Resolution

This is a known issue and will be corrected in a future revision of this management pack.

If this monitor must be enabled prior to the release of the next version, the following method can be used to fix the script:

  1. Export the Microsoft.MSMQ.2003 management pack from the Operations Console and save it to the desktop.

  2. Open the file in notepad.

  3. Locate the following line:

    Dim lAppSpecific, iMaxWaitTime, bRemoveMessage, bCleanupQueue

  4. Insert the "iTotalSeconds" variable so that the line now appears as:

    Dim lAppSpecific, iMaxWaitTime, iTotalSeconds, bRemoveMessage, bCleanupQueue

  5. Locate the following section:

    If Err = 0 Then bCreateMessage = True

    sStep = "Sending message."

  6. Add the "iTotalSeconds=0" line to the section so that it appears like this:

    If Err = 0 Then bCreateMessage = True iTotalSeconds = 0

    sStep = "Sending message."

  7. Save the file.

  8. Delete the original MP from the console.

  9. Import the fixed MP into the console

More Information

If any override management packs were created for rules and monitors from the MSMQ 2003 MP, they will no longer be valid once the original MP has been unsealed and reimported. Overrides must be recreated and saved to this fixed MP.

As an alternative, the MP can be resealed and a new override MP can be created for it. For additional information, see the article in TechNet
"How to seal a management pack"

https://technet.microsoft.com/en-us/library/bb309498.aspx

=====

The information above was published today in the following Microsoft Knowledge Base article written by Rich Pesenko:

KB2522424 - Alert for "Send Test Message" monitor from the MSMQ 2003 Management Pack in Systems Center Operations Manager 2007

J.C. Hornbeck | System Center Knowledge Engineer

The App-V Team blog: https://blogs.technet.com/appv/
The WSUS Support Team blog: https://blogs.technet.com/sus/
The SCMDM Support Team blog: https://blogs.technet.com/mdm/
The ConfigMgr Support Team blog: https://blogs.technet.com/configurationmgr/
The SCOM 2007 Support Team blog: https://blogs.technet.com/operationsmgr/
The SCVMM Team blog: https://blogs.technet.com/scvmm/
The MED-V Team blog: https://blogs.technet.com/medv/
The DPM Team blog: https://blogs.technet.com/dpm/
The OOB Support Team blog: https://blogs.technet.com/oob/
The Opalis Team blog: https://blogs.technet.com/opalis
The Service Manager Team blog: http: https://blogs.technet.com/b/servicemanager
The AVIcode Team blog: http: https://blogs.technet.com/b/avicode
The System Center Essentials Team blog: http: https://blogs.technet.com/b/systemcenteressentials
The Server App-V Team blog: http: https://blogs.technet.com/b/serverappv

clip_image001 clip_image002