Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Alert for "Send Test Message" monitor from the MSMQ 2003 Management Pack in Systems Center Operations Manager 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.

↑ Back to the top


Cause

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

↑ Back to the top


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

↑ Back to the top


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"

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

↑ Back to the top


Keywords: vkball, kb

↑ Back to the top

Article Info
Article ID : 2522424
Revision : 1
Created on : 1/8/2017
Published on : 3/28/2011
Exists online : False
Views : 99