I have this in my conf file: (agentd)
### Option: UserParameter
# User-defined parameter to monitor. There can be several user-defined parameters.
# Format: UserParameter=<key>,<shell command>
#
# Mandatory: no
# Default:
# UserParameter=
UserParameter=mssql.db.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\mssql_basename.ps1"
UserParameter=mssql.version,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\mssql_version.ps1"
But for some odd reason when I use the Template on my host. I keep getting unsupported item key ?
When i run the powershells on their own, i get my value back in the normal JSON format.
Any ideas?
### Option: UserParameter
# User-defined parameter to monitor. There can be several user-defined parameters.
# Format: UserParameter=<key>,<shell command>
#
# Mandatory: no
# Default:
# UserParameter=
UserParameter=mssql.db.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\mssql_basename.ps1"
UserParameter=mssql.version,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\mssql_version.ps1"
But for some odd reason when I use the Template on my host. I keep getting unsupported item key ?
When i run the powershells on their own, i get my value back in the normal JSON format.
Any ideas?
Comment