-
Type:
Problem report
-
Resolution: Fixed
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.0.21, 7.0.22
-
Component/s: Agent2 (G)
-
Environment:Windows Server 2019 x86_64 10.0.17763.17763
Steps to reproduce:
- Install Zabbix agent 2 on Windows host (cli or gui method)
Add-Content -Path "C:\\Program Files\\Zabbix Agent 2\\zabbix_agent2.conf" -Value "UserParameter=bar.foo,powershell -Command { Write-Host 'bar foo' }"
& 'C:\Program Files\Zabbix Agent 2\zabbix_agent2.exe' -T
Restart-Service -Name "Zabbix Agent 2"
Invoke-WebRequest https://cdn.zabbix.com/zabbix/binaries/stable/7.0/7.0.22/zabbix_agent2-7.0.22-windows-amd64-openssl.msi -O zabbix_agent2-7.0.22.msi
msiexec.exe /l*v "zabbix_agent2_install.log" /i "zabbix_agent2-7.0.22.msi" /qn+
- Check if previously addded parameter exists in conf file
Result:
UserParameter(s) (checked many and multiple location in files) has been erased from config file.
This issue does not exists when updating process is via gui.
Expected:
I know that I can move UserParameter(s) to included files (and this is indeed in most cases better practice than keeping it in main conf file), but for some reasons I must leave it there.{}