Hi!
The WMI query returns values of type Real32.
When using wmi.get[] - the returned value is correct.
When using wmi.get all [] - the return value is incorrect.
Example:
How to use wmi.getall [], get a human readable value?
The WMI query returns values of type Real32.
When using wmi.get[] - the returned value is correct.
When using wmi.get all [] - the return value is incorrect.
Example:
Code:
C:\Program Files\Zabbix Agent>zabbix_get -s 127.0.0.1 -k wmi.get[root\OpenHardwareMonitor,"select Max from sensor where (Parent LIKE '%RAM%' AND SensorType = \"Load\")"]
79.757965
C:\Program Files\Zabbix Agent>zabbix_get -s 127.0.0.1 -k wmi.getall[root\OpenHardwareMonitor,"select Max from sensor where (Parent LIKE '%RAM%' AND SensorType = \"Load\")"]
[{"Max":4635312884778270720.}]
[LEFT][COLOR=#252C2F][FONT="Open Sans"][/FONT][/COLOR][/LEFT]
How to use wmi.getall [], get a human readable value?
Comment