Hello,
Im trying to pass a variable into the User Parameter, in order to run a local command. When I run the command locally i get the expected result, but when I configure the UserParameter locally, and then try to call it from Zabbix, I get a "Not supported by Zabbix Agent".
My UserParameter is:
UserParameter=FileCount2[*],dir $1 /b/a-d | find /c /v ""
My Item is created as Zabbix Agent:
FileCount2[c:\inetpub\wwwroot]
The results from running the commmand locally:
C:\>dir c:\inetpub\wwwroot\ /b/a-d | find /c /v ""
2
Any help would be greatly appreciated, thanks all!
Im trying to pass a variable into the User Parameter, in order to run a local command. When I run the command locally i get the expected result, but when I configure the UserParameter locally, and then try to call it from Zabbix, I get a "Not supported by Zabbix Agent".
My UserParameter is:
UserParameter=FileCount2[*],dir $1 /b/a-d | find /c /v ""
My Item is created as Zabbix Agent:
FileCount2[c:\inetpub\wwwroot]
The results from running the commmand locally:
C:\>dir c:\inetpub\wwwroot\ /b/a-d | find /c /v ""
2
Any help would be greatly appreciated, thanks all!
Comment