Hi,
I have created a custom low level discovery (powershell) script to return me all user folders on a windows share. I would like to pass the folder path as a parameter to the script like so:
Zabbix key:
vfs.fs.discovery_users[C:\users, discover]
Zabbix agent.conf:
UserParameter=vfs.fs.discovery_users[*],powershell.exe C:\Tools\WindowsSearch.ps1 $1 $2
Problem is, the UserParameter does not - by default - accept special characters. Is there another way to get this to work, other than to set UnsafeUserParameters=1 in agent.conf?
TIA,
Wouter
I have created a custom low level discovery (powershell) script to return me all user folders on a windows share. I would like to pass the folder path as a parameter to the script like so:
Zabbix key:
vfs.fs.discovery_users[C:\users, discover]
Zabbix agent.conf:
UserParameter=vfs.fs.discovery_users[*],powershell.exe C:\Tools\WindowsSearch.ps1 $1 $2
Problem is, the UserParameter does not - by default - accept special characters. Is there another way to get this to work, other than to set UnsafeUserParameters=1 in agent.conf?
TIA,
Wouter
Comment