The Windows agent config template was missing the active
UserParameterDir=${ZBX_USERPARAMETERDIR} line. The Windows agent Dockerfile
sets ZBX_USERPARAMETERDIR and creates the C:\zabbix\user_scripts directory,
but because the option is never written to the config, user parameter scripts
placed there are not loaded by the agent.
The Linux agent, Linux agent2, and Windows agent2 templates all set this
option; only the Windows agent template was missing it. Add it to match.
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
####### USER-DEFINED MONITORED PARAMETERS #######
|
|
|
|
### Option: UnsafeUserParameters
|
|
# Allow all characters to be passed in arguments to user-defined parameters.
|
|
# The following characters are not allowed:
|
|
# \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
|
|
# Additionally, newline characters are not allowed.
|
|
# 0 - do not allow
|
|
# 1 - allow
|
|
#
|
|
# Mandatory: no
|
|
# Range: 0-1
|
|
# Default:
|
|
# UnsafeUserParameters=0
|
|
|
|
UnsafeUserParameters=${ZBX_UNSAFEUSERPARAMETERS}
|
|
|
|
### Option: UserParameter
|
|
# User-defined parameter to monitor. There can be several user-defined parameters.
|
|
# Format: UserParameter=<key>,<shell command>
|
|
# See 'zabbix_agentd' directory for examples.
|
|
#
|
|
# Mandatory: no
|
|
# Default:
|
|
# UserParameter=
|
|
|
|
### Option: UserParameterDir
|
|
# Directory to execute UserParameter commands from. Only one entry is allowed.
|
|
# When executing UserParameter commands the agent will change the working directory to the one
|
|
# specified in the UserParameterDir option.
|
|
# This way UserParameter commands can be specified using the relative ./ prefix.
|
|
#
|
|
# Mandatory: no
|
|
# Default:
|
|
# UserParameterDir=
|
|
|
|
UserParameterDir=${ZBX_USERPARAMETERDIR}
|