I'm creating a UserParameter item to cont the number of files in a folder. I need to then pass this item the folder path where to count the file. However I'm not able to do this as what I'm passing appears to be cut off.
Example:
I then config in the item:
I test using zabbix_get and got the below error:
It appears that the forward slashes are causing issue so the zabbix agent cannot get the full data I'm passing.
What I am I doing wrong?
Example:
Code:
UserParameter=file.countfiles_by_extention[*],dir /b $1\*.$2 | find /c /v "~~~"
Code:
file.countfiles_by_extention[C:/Applications/images,jpg,150KB]
Code:
Parameter format not correct - "pplications".
What I am I doing wrong?

Comment