Fix: Alert for "Send Test Message" monitor from the MSMQ 2003 Management Pack in Systems Center Operations Manager 2007
Just 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:
Export the Microsoft.MSMQ.2003 management pack from the Operations Console and save it to the desktop.
Open the file in notepad.
Locate the following line:
Dim lAppSpecific, iMaxWaitTime, bRemoveMessage, bCleanupQueue
Insert the "iTotalSeconds" variable so that the line now appears as:
Dim lAppSpecific, iMaxWaitTime, iTotalSeconds, bRemoveMessage, bCleanupQueue
Locate the following section:
If Err = 0 Then bCreateMessage = True
sStep = "Sending message."
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."
Save the file.
Delete the original MP from the console.
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:
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
Comments
- Anonymous
December 03, 2015
The comment has been removed - Anonymous
January 30, 2016
Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
http://www.movieboxapkdownload.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
http://www.aptoideapkdownload.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble.
http://www.vidmatedownloadapk.com/
Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
http://www.shareitforpccdownload.com/
http://www.shareitforpccdownload.com/shareit-for-pc-windows-10-8-1-7-mac-free-download/
SHAREit for PC lets you transfer files between devices like phones, tablets and computers. With the wide area of sharing compatibility, sharing across anything is easy now. This is the best and the fastest alternative for USB sharing.