Applies To
Zenoss 4.2.3
Summary
After an upgrade, Windows Monitoring plugins may appear as duplicate entries in the modeling section of the Resource Manager console. When present, the problem might be caused by an incomplete removal of Windows ZenPacks during the upgrade.
Procedure
Use the following procedure to remove duplicate windows modeler plugins by removing and re-installing the Windows ZenPacks.
-
Log in to the Resource Manager master host as zenoss.
-
If necessary, download the Windows Monitoring RPM file from https://support.zenoss.com.
Contact your Zenoss representative for login credentials. - Use zendmd to verify there are no remaining ZenPacks bound to the templates. For additional information about zendmd, see the Knowledge Base Article ID 16052-35 Introduction to zendmd.
- Start zendmd as zenoss:
$ zendmd - Enter the following commands:
zps = ['ZenWinPerf','WinModelerPlugins'] for pack in dmd.ZenPackManager.packs(): for zp in zps: if zp in pack.id: print "%s contains %d pack objects" % (pack.id, len(pack.packables()))
- If both values come back as zero, it is safe to remove the ZenPacks. Proceed to the next step.
- If the values do not come back as zero, unbind any ZenPacks that remain bound and rerun the dmd to verify.
- Exit the zendmd interface:
exit or type CTRL-D - Create a temporary file with a list of ZenPacks to remove:
$ cat >> /tmp/mszps.txt <<EOT -ZenPacks.zenoss.ZenWinPerf -ZenPacks.zenoss.WinModelerPlugins -ZenPacks.zenoss.ActiveDirectory -ZenPacks.zenoss.IISMonitor -ZenPacks.zenoss.MSExchange -ZenPacks.zenoss.MSMQMonitor -ZenPacks.zenoss.MSSQLServer EOT
- Stop Resource Manager.
$ zenoss stop - Start zencatalogservice:
$ zencatalogservice start - start zeneventserver:
$ zeneventserver start - Remove the Windows Monitoring ZenPacks:
$ zenpack_batch /tmp/mszps.txt -
Verify the Windows Monitoring ZenPacks are removed:
$ zenpack --listIf any ZenPacks remain, run the zenpack_batch command again.
-
Switch user to root, or to a user with root privileges.
-
Install the appropriate ZenPack:
- RHEL/CentOS 5:
# yum -y --nogpgcheck reinstall zenoss_msmonitor- version .el5.x86_64.rpm - RHEL/CentOS 6:
# yum -y --nogpgcheck reinstall zenoss_msmonitor- version .el6.x86_64.rpm
- RHEL/CentOS 5:
- Start Resource Manager:
# service zenoss start
Comments