Zabbix Agent 2 msi cli update erase UserParameter(s)

XMLWordPrintable

    • 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:

      1. Install Zabbix agent 2 on Windows host (cli or gui method)
      2. Add-Content -Path "C:\\Program Files\\Zabbix Agent 2\\zabbix_agent2.conf" -Value "UserParameter=bar.foo,powershell -Command { Write-Host 'bar foo' }"
      1. & 'C:\Program Files\Zabbix Agent 2\zabbix_agent2.exe' -T
      1. Restart-Service -Name "Zabbix Agent 2" 
      1. 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
      1. msiexec.exe /l*v "zabbix_agent2_install.log" /i "zabbix_agent2-7.0.22.msi" /qn+ 
      1. 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.{}

            Assignee:
            Guntis Liepins
            Reporter:
            Maciej Kuczerski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: