From 8fb143b4fb2013e1d0bb6b352e3b7880f24ee703 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Mon, 20 May 2024 14:16:26 +0900 Subject: [PATCH] Updated build process for Zabbix agent (windows) --- Dockerfiles/agent2/windows/docker-entrypoint.ps1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/agent2/windows/docker-entrypoint.ps1 b/Dockerfiles/agent2/windows/docker-entrypoint.ps1 index 22c0b540d..183114cbc 100644 --- a/Dockerfiles/agent2/windows/docker-entrypoint.ps1 +++ b/Dockerfiles/agent2/windows/docker-entrypoint.ps1 @@ -109,7 +109,7 @@ function Update-Config-Multiple-Var { } function Prepare-Zbx-Agent-Config { - Write-Host "** Preparing Zabbix agent configuration file" + Write-Host "** Preparing Zabbix agent 2 configuration file" $ZbxAgentConfig="$ZabbixConfigDir\zabbix_agent2.conf" @@ -226,9 +226,19 @@ function Prepare-Zbx-Agent-Config { } +function Prepare-Zbx-Agent-Plugins-Config { + Write-Host "** Preparing Zabbix agent 2 (plugins) configuration file" + + $ZbxAgentConfig="$ZabbixConfigDir\zabbix_agent2.conf" + +# Update-Config-Var $ZbxAgentConfig "Plugins.MongoDB.System.Path" "$ZabbixUserHomeDir\zabbix-agent2-plugin\zabbix-agent2-plugin-mongodb.exe" +# Update-Config-Var $ZbxAgentConfig "Plugins.PostgreSQL.System.Path" "$ZabbixUserHomeDir\zabbix-agent2-plugin\zabbix-agent2-plugin-postgresql.exe" +} + function PrepareAgent { - Write-Host "** Preparing Zabbix agent" + Write-Host "** Preparing Zabbix agent 2" Prepare-Zbx-Agent-Config + Prepare-Zbx-Agent-Plugins-Config } $commandArgs=$args