[ZBXNEXT-2945] Retrieval of multiple WMI values in single wmi.get[] query Created: 2015 Sep 09 Updated: 2019 Sep 23 Resolved: 2019 Sep 23 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent (G) |
Affects Version/s: | 2.2.10, 2.4.6 |
Fix Version/s: | None |
Type: | Change Request | Priority: | Major |
Reporter: | Mārcis Lielturks | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 4 |
Labels: | newitemkey, windows, wmi | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Microsoft Windows |
Issue Links: |
|
Description |
Ability to query WMI is really powerful method when it comes to getting data from Windows. It would be really nice to be able to control what Zabbix agent (or maybe server) does with retrieved WMI values, if there are more than one. One real life use case would be slightly simplified method of getting FQDN on Windows without cmd/PowerShell woo-doo ( Concatenating retrieved columns by using dot (".") symbol
wmi.get[root\CIMV2,"SELECT DNSHostName,Domain FROM Win32_ComputerSystem",.]
Different use case probably requiring different approach/implementation would be to retrieve WMI values, which actually are arrays like OperationalStatus in Msvm_ComputerSystem class. Currently there are no way to retrieve 2nd array element from this class (besides using "system.run[ powershell ....]", which is different story (ZBXNEXT-1101)). While at it, but this probably is worth its own ticket, maybe it is feasible that Zabbix agent/server would format retrieved WMI tables to JSON for use in LLD (wmi.discovery[] item?)? |
Comments |
Comment by Aleksandrs Saveljevs [ 2015 Sep 09 ] |
Retrieving WMI values from arrays is requested in |
Comment by Mārcis Lielturks [ 2015 Sep 09 ] |
Ok. So then this ticket only suggests feature for having ways of retrieving multiple columns from WMI and concatenating them (cant think of other operations one would need). I created another request for supporting WMI discovery. |
Comment by richlv [ 2015 Sep 10 ] |
wmi lld was created as |
Comment by Raymond Kuiper [ 2019 Feb 14 ] |
Now that we have item preprocessing, this could be very useful. |