Environment
NetIQ AppManager 6.0.x
NetIQ AppManager 7.0.x
NetIQ AppManager Managed Clients
NT Application Event Log
Situation
NT Application EventLog Displays Event ID 2001 with Source NetIQmcCnt on AppManager Managed Clients
Event ID: 1015
The timeout waiting for the performance data collection function NetIQmc in the C:\WINNT\System32\mccnt.dll Library to finish has expired.
Event ID: 1016
The data buffer created for the NetIQmc service in the C:\WINNT\System32\mccnt.dll library is not aligned on an 8-byte boundary.
Event ID: 1019
A definition field in an object returned by Extensible Counter DLL C:\WINNT\System32\mccnt.dll for the NetIQmc service was incorrect. The sum of the definitions block lengths in the object definition structures did not match the size specified in the object definition header.
Resolution
Warning: Before attempting the following fix, it is highly recommended that you first take a back-up of the existing registry keys listed in the following steps. In this way, you can revert any changes that you make, should something go wrong.
Check the following registry key on the affected server:
To correct this issue on 32-bit Windows OSs:
Please change this key to the appropriate key and restart the netiqmc and netiqccm services.
Step 1
On the Agent in question, access the following registry key:
HKLM | System | CurrentControlSet | Services | NetIQmc | Performance
If the Library registry value is already set to mccnt.dll then skip Step 2, and unload and re-load the NetIQ Agent Counters by using UNLODCTR.EXE and LODCTR.EXE as described in the Unloading and and Re-loading the NetIQmc Performance Counter section of this article. If the counter is missing or blank, then go to Step 2.
Verify the following registry key:
HKLM | System | CurrentControlSet | Services | EventLog | Application | NetIQmcCnt | EventMessageFile:
(Should be pointed to the C:\Program Files\netiq\appmanager\bin folder (or correct path), not the system32 directory).
Step 2
If the Library registry value is missing (blank), you will need to re-create the performance Registry Key.
To recreate the performance Registry Keys, use the mccnt.reg file located in the %\NetIQ\AppManager\bin folder:
- In the mccnt.reg file, edit the Library key to the correct path for the NetIQ installation:
"Library"="mccnt.dll"
- Save the file and then import it into the agent machine registry by double clicking on it.
- You will then need to re-load the performance counters as explained in the Unloading and and Re-loading the NetIQmc Performance Counter section of this article.
Unloading and Re-loading the NetIQmc Performance Counter
To remove and reinstall the NetIQ Counters, use UNLODCTR.EXE and LODCTR.EXE. This is a revised procedure after restoration of the Registry Key as outlined above.
- From a command prompt, change directories to <install path>\NetIQ\AppManager\bin folder.
- At the prompt, type unlodctr netiqmc to unload the NetIQ Performance Counters.
C:\Program Files\NetIQ\AppManager\bin> unlodctr netiqmc
- Stop and restart the NetIQ AppManager Client Resource Monitor service.
- At the prompt, type lodctr mccnt.ini to load the NetIQ Performance Counters.
C:\Program Files\NetIQ\AppManager\bin> lodctr mccnt.ini
5. Stop and restart the NetIQ AppManager Client Resource Monitor service.
To correct this issue on 64-bit Windows OSs:
- Stop the NetIQmc service (NetIQ AppManager Client Resource Monitor service) and also close Perfmon.
- From a command prompt, change directories to <install path>\NetIQ\AppManager\bin folder.
- At the prompt, type unlodctr netiqmc to unload the NetIQ Performance Counters.
C:\Program Files (x86)\NetIQ\AppManager\bin> unlodctr netiqmc - Open regedit.exe
- Find the key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netiqmc\Performance"
- Find the value named "Disable Performance Counters"
- Ensure, that its value is "1", if the registry key does not exist, then create a new DWORD 32 bit registry key and set the value as 1.
* If you have to manually create this key, or modify it, a server reboot may be needed for the changes to apply. - Close Regedit.
At a command prompt, type lodctr mccnt.ini to load the NetIQ Performance Counters.
C:\Program Files (x86)\NetIQ\AppManager\bin> lodctr mccnt.ini- Start the NetIQmc service.
Cause
Additional Information