-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New type option not working with multiple values #9
Comments
Not sure you fixed..., I was just having the same issue. /usr/lib/zabbix/externalscripts/zbxwmi -k "AvailableBytes,AvailableKBytes" -a json -type n,n -fields "AvailableBytes,AvailableKBytes" "Win32_PerfFormattedData_PerfOS_Memory" -cred /etc/zabbix/wmi.pw SERVER output is: |
Using -k seems to work indeed. Example of single value failing without -k:
Example of single value working without -k:
It seems unclear what the -k key option really is for. If it has to be the same as -fields it seems redundant. In the README other examples use "-k DeviceID" however removing it from those examples results in the exact same output? |
The new type option doesn't seem to work multiple values.
from README:
Actual result:
old script
Also tried with n,n,n,s as the old script reports an extra name value, same error.
And with s,s,s,s, which results in a slightly different error "An error occured: can only concatenate str (not "int") to str"
The text was updated successfully, but these errors were encountered: