From 026dd685b09d893c528041c774fd1a19ee2999ff Mon Sep 17 00:00:00 2001 From: saranf Date: Tue, 21 Jul 2026 23:34:09 +0900 Subject: [PATCH] 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. --- .../config/agent_windows/zabbix_agentd_user_parameters.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/config/agent_windows/zabbix_agentd_user_parameters.conf b/templates/config/agent_windows/zabbix_agentd_user_parameters.conf index fd664958..3e584eb7 100644 --- a/templates/config/agent_windows/zabbix_agentd_user_parameters.conf +++ b/templates/config/agent_windows/zabbix_agentd_user_parameters.conf @@ -33,3 +33,5 @@ UnsafeUserParameters=${ZBX_UNSAFEUSERPARAMETERS} # Mandatory: no # Default: # UserParameterDir= + +UserParameterDir=${ZBX_USERPARAMETERDIR}