Currently Being Moderated

WMI Data Source

VERSION 15  Click to view document history

Created on: Sep 14, 2009 1:30 PM by bigegor - Last Modified:  Nov 6, 2009 3:54 PM by Matt Ray

Average User Rating
(0 ratings)
WARNING

*** DO NOT UPGRADE TO ZENOSS 2.5 UNTIL YOU HAVE UPGRADED THIS ZENPACK TO VERSION 1.5!!! ***

 

Submitted by:

Egor Puzanov


Description:
This ZenPack creates a new zenperfwmi daemon for making Windows Management Interface calls via a WMI Data Source. This can be used to wrap WQL calls that had been previously made with wmic as Command data sources. The advantage for the WMI Data Source is that credentials should be properly handled and performance may be improved.

 

 


Screenshots:

 

WMIcpu.png

WMIDataSource.png

 


REQUIREMENTS:

     Zenoss Version: 2.3

     ZenPack Dependencies:

     External Dependencies:

     Installation:

You will need to restart Zenoss after installing the ZenPack to properly register the new zenperfwmi daemon.  This daemon is managed under Settings->Daemons with the other Zenoss daemons.

 


Source: http://zenpacks.zenoss.org/trac-zenpacks/browser/zenpacks/ZenPacks.community.WMIDataSource

Tagged Releases:

 

Change History:

  • 1.1 initial release
  • 1.5 added compatibility for Zenoss 2.5

 


Trac tickets: http://zenpacks.zenoss.org/trac-zenpacks/report/1

Known issues:

47,022 Views Tags: wmi, windows, microsoft, data, daemon
Matt Ray Matt Ray  says:
I've posted a Subversion version of the ZenPack for testing with Zenoss 2.5.
Ryan Matte Ryan Matte  says in response to Matt Ray:

twm1010 and I tested a direct install of the pack on 2.5 as well as an install of the old version of the pack on 2.4.5, then upgrading the pack to the beta, then upgrading zenoss to 2.5.  The ZenPack worked fine in both cases.

 

Egor did mention that WMIDataSource 2.0 doesn't support WMI name spaces other than root/cimv2 for now, so this is by no means a final version of the pack for 2.5, but it's an excellent start.

bigegor bigegor  says in response to Ryan Matte:
Support for name spaces other than root/cimv2 added to WMIDataSource 2.0.1.
Vit Svarc Vit Svarc  says:

Thanks! I upgraded to 2.5 from 2.4.5, where I was already using this zenpack. After upgrade, it didn't work and I read the notice afterthat, that there are some issues with this zenpack.

After upgrading this zenpack to 2.0.1, zenperfwmi daemon works again and for example exchange zenpack is working again too. Great work!

Matt Ray Matt Ray  says in response to Matt Ray:
Egor sent me source for a transitional version, 1.5.  I've attached it to the page and branched and tagged it in Subversion.  The 1.5 version is supposed to work with Zenoss 2.4.5 and Zenoss 2.5 and work post-upgrade.
Vit Svarc Vit Svarc  says in response to Matt Ray:
So version 1.5 is higher and more stable then 2.0.1. ?
bigegor bigegor  says in response to Vit Svarc:

Not realy.

WMIDataSource 1.1 used WinCollector class from Zenoss <= 2.4.5. In Zenoss 2.5.0 WinCollector class doesn't exist and WMIDataSource 2.0 used new ZenCollector classes. This is why WMIDataSource 1.1 doesn't work with Zenoss 2.5.0 and WMIDataSource 2.0 doesn't work with Zenoss 2.4.5. To provide successful upgrade source, I've made WMIDataSource 1.5 wich is WMIDataSource 1.1 with WinCollector class integrated in Zenpack, it works with bouth Zenoss versions, but further development will be only ZenCollector based.

AlecsJ AlecsJ  says:

I installed this pack, but i get following error when i try to start deamon:

 

2009-12-09 19:03:29,920 INFO zen.zenperfwmi: Connecting to localhost:8789
2009-12-09 19:03:29,967 INFO zen.zenperfwmi: Connected to ZenHub
2009-12-09 19:03:30,058 ERROR zen.zenperfwmi: Could not retrieve service ZenPacks.community.WMIDataSource.services.WmiPerfConfig
2009-12-09 19:03:30,058 CRITICAL zen.zenperfwmi: Invalid monitor: localhost
2009-12-09 19:03:30,059 INFO zen.zenperfwmi: Deleting PID file /usr/local/zenoss/zenoss/var/zenperfwmi-localhost.pid ...
2009-12-09 19:03:30,059 INFO zen.zenperfwmi: Daemon zenperfwmi shutting down

Please help me.

 

Thanks.

Matt Ray Matt Ray  says in response to AlecsJ:
You'll need to restart zenoss completely to register the new daemon.  As the zenoss user, do a 'zenoss restart'.
AlecsJ AlecsJ  says in response to Matt Ray:

Thank you very much. That did help me

smcingvale smcingvale  says:

I've installed the zenpack fine...but if I try to edit a datasource in WMIDevice template I get the following error:

 

Type: KeyError
Value: 'editWMIDataSource'

Traceback (innermost last):

  • Module ZPublisher.Publish, line 119, in publish
  • Module ZPublisher.mapply, line 88, in mapply
  • Module ZPublisher.Publish, line 42, in call_object
  • Module Products.ZenModel.ZenModelBase, line 65, in __call__
  • Module OFS.Traversable, line 301, in restrictedTraverse
  • Module OFS.Traversable, line 284, in unrestrictedTraverse
    __traceback_info__: ([], 'editWMIDataSource')

KeyError: 'editWMIDataSource'

 

Anyone seen this before?

cdillardhsp cdillardhsp  says in response to smcingvale:

I didn't see that I had to upgrade to the latest WMI Zenpack before I upgraded Zenoss from 2.4.x to 2.5.1.  Now all my WMI datasources cause errrors like the one listed below.  How do I fix this?

 

Cmd: $ZENHOME/Products/WMIPerformanceMonitor/libexec/wmi_stats.pl MemPage "rduavs1.rd.com" "192.168.18.143" "RD\zenwin" "MyPassword" - Code: 126 - Msg: Command invoked cannot execute, permissions problem or command is not an executable

cdillardhsp cdillardhsp  says in response to Matt Ray:

Where's the documentation for this ZenPack?

Ryan Matte Ryan Matte  says in response to cdillardhsp:

There really isn't much documentation other than this ZenPack page.  There's a large warning at the top of the page explaining that you need to install version 1.5 before upgrading (but I guess you missed that somehow).  You have effectively trashed your install as far as I know (I never could recover my king crab install after upgrading with the older version of the ZenPack).  Perhaps Egor knows of a way to recover from that.

Ryan Matte Ryan Matte  says in response to smcingvale:

smcingvale, I assume you restarted Zenoss after installing the ZenPack?  If not then that is most certainly your problem.

bigegor bigegor  says in response to cdillardhsp:

WMIPerformanceMonitor ZenPack has no relation with WMI DataSource ZenPack. Ask WMIPerformanceMonitor author.

Bookmarked By (2)

More Like This

  • Retrieving data ...