Sep 30, 2009 5:39 AM
wmi datasource zenpack: multiple-row output
-
Like (0)
Hi all,
I hope you read this, Egor Puzanov "bigegor", because I couldn't find your contact information anywhere.
Anyway, I'm using Egor's wmi datasource zenpack, but my problem is i need various metrics about multiple proccesses.
So my query output is not only multi-column, it's also multi-row.
It looks like this:
Executing command wmic -U '.username '%'*****' //192.168.68.25 --namespace='rootcimv2' "select PageFileBytes,PoolNonpagedBytes,PoolPagedBytes,PrivateBytes,VirtualBytes,WorkingSet from win32_PerfFormattedData_PerfProc_Process where name LIKE '%indesign%'" against QA Indesign server
CLASS: Win32_PerfFormattedData_PerfProc_Process
Name|PageFileBytes|PoolNonpagedBytes|PoolPagedBytes|PrivateBytes|VirtualBytes|WorkingSet
InDesignServer|217841664|39192|372012|217841664|398671872|59248640
InDesignServer|217841664|39192|372012|217841664|398671872|59432960
InDesignServer|217841664|39232|380380|217841664|398671872|59146240
I want to use these values as datapoints so I can graph them and put thresholds on them.
The problem is the wmi datasource zenpack, when given such output, will only consider the first line and ignores all others.
I tried working around it by defining 8 separate queries, adding ' ENTRY 1', 'ENTRY 2' etc to each of them, and creating a wrapper script around wmic that checks the 'ENTRY' argument and filters the output of the "real" wmic accordingly. but it seems this script is not called by the datasource (it is however used, when doing a manual 'test' of the command through zenoss interface, which makes things quite confusing).
My python is not that good so I was hoping someone with more intimate knowlegde of this zenpack could give me some good pointers.
Thanks,
Dieter
PS: fyi, my original problem is explained more in detail @ thread/11337
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||