mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-19 17:38:43 +02:00
Updated build process for Zabbix agent (windows)
This commit is contained in:
parent
f1fa58b5f6
commit
8fb143b4fb
@ -109,7 +109,7 @@ function Update-Config-Multiple-Var {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Prepare-Zbx-Agent-Config {
|
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"
|
$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 {
|
function PrepareAgent {
|
||||||
Write-Host "** Preparing Zabbix agent"
|
Write-Host "** Preparing Zabbix agent 2"
|
||||||
Prepare-Zbx-Agent-Config
|
Prepare-Zbx-Agent-Config
|
||||||
|
Prepare-Zbx-Agent-Plugins-Config
|
||||||
}
|
}
|
||||||
|
|
||||||
$commandArgs=$args
|
$commandArgs=$args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user