[ZBXNEXT-2459] Extend wmi.get functionality to query properties of type array Created: 2014 Sep 13 Updated: 2019 Sep 23 Resolved: 2019 Sep 23 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent (G) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Trivial |
Reporter: | v99glu | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 8 |
Labels: | windows, wmi | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
||||||||
Issue Links: |
|
Description |
I need to monitor SmartArray HDDs of old server HP DL360 G5. ILO2 of the server doesn't support SNMP (agentless SNMP) and HP system software for Windows on the server doesn't support monitoring of HDDs via SNMP, therefore I have to use HP WBEM Provider for Windows and WMI to get info about SmartArray disk drives. According to MS note (http://msdn.microsoft.com/en-us/library/aa392902(v=vs.85).aspx) "WQL does not support queries of array datatypes" therefore some programming logic is requirred to access the arrays queried with WQL. And HPSA_DiskDrive.OperationalStatus is just a property of type array of strings. So, the feature request: Similar functionality is realized in powershell - http://technet.microsoft.com/en-us/library/ff405671.aspx IMHO, such improvement will be usefull in many WMI cases not only in my one because property of type array is an ordinary thing amongst WBEM classes. |
Comments |
Comment by v99glu [ 2014 Sep 13 ] |
Of course I can use Zabbix Agent UserParameter + PowerShell script to fetch element of array but it is elegantless and excellent Zabbix wmi.get ability stays outboard. |
Comment by Oleksii Zagorskyi [ 2014 Sep 14 ] |
could be used then for LLD+WMI (missing yet, even corresponding feature request). EDIT: created in |
Comment by Pedro Nunes [ 2014 Nov 26 ] |
Attached wmi.cpp that supports arrays. Only index 0. Think thats enought to support HP Wbem providers. |
Comment by Pedro Nunes [ 2014 Dec 23 ] |
Ok, Attached my last wmi.cpp that i use for some time in my production environment.
|