Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19636

MSI LOGFILE Parameter ignored

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.4.2
    • Agent (G)
    • Windows Server 2016 Standard

      Steps to reproduce:

      1. Install Zabbix Agent 2 with MSI:
        SET ZBXDIR=%ProgramFiles%\Zabbix
        SET ZBXCONF=%ZBXDIR%\zabbix_agent2.conf
        FOR /F "tokens=* USEBACKQ" %g IN (`"PowerShell.exe -nologo -command ([System.Net.Dns]::GetHostByName(($env:computerName))).Hostname.ToLower()"`) do (SET "HNAME=%g")

      msiexec /l* log.txt /i zabbix_agent2-5.4.2-windows-amd64-openssl.msi /qn^
      LOGTYPE=file^
      LOGFILE="%ZBXDIR%\zabbix_agent2.log"^
      SERVER=zabbix-proxy-01.test.com^
      SERVERACTIVE=zabbix-proxy-01.test.com^
      HOSTNAME="%HNAME%"^
      TIMEOUT=30^
      ENABLEPATH=1^
      INSTALLFOLDER="%ZBXDIR%"

      Result:

      1. Check config:
        ...
          1. Option: LogFile
      2. Log file name for LogType 'file' parameter.
        #
      3. Mandatory: yes, if LogType is set to file, otherwise no
      4. Default:
      5. LogFile=c:\zabbix_agent2.log
          1. Option: LogFileSize
            ...

      Expected:
      LogFile=C:\Program Files\Zabbix\zabbix_agent2.log

        1. MSI install log.txt
          141 kB
          Aleksey Volodin
        2. zabbix_agent2.conf
          23 kB
          Aleksey Volodin

            zabbix.dev Zabbix Development Team
            yuriip Yurii Polenok
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: