Updated build process for Zabbix agent (windows)

This commit is contained in:
Alexey Pustovalov 2024-05-20 14:16:26 +09:00
parent f1fa58b5f6
commit 8fb143b4fb

View File

@ -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