Enable UserParameterDir on Windows agent config

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.
This commit is contained in:
saranf 2026-07-21 23:34:09 +09:00
parent 999249248e
commit 026dd685b0

View file

@ -33,3 +33,5 @@ UnsafeUserParameters=${ZBX_UNSAFEUSERPARAMETERS}
# Mandatory: no # Mandatory: no
# Default: # Default:
# UserParameterDir= # UserParameterDir=
UserParameterDir=${ZBX_USERPARAMETERDIR}