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

windows zabbix agent 2 cannot have spaces in psk path

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.2.4
    • Agent (G)
    • None
    • windows server 2019

      Steps to reproduce:

      1. install zabbix agent 2 on windows server and setup the psk during installation
      2. zabbix agent service wont start due to the default psk path being "C:\Program Files\Zabbix Agent 2\psk.key"

      To fix it:

      1. copy the psk to c:#somewhere with no spaces"
      2. change the zabbix agent config file to match the new location

      Result:

      Log file from the first attempt to start the agent (with spaces in psk path):
      2022/11/16 13:06:47.473814 Starting Zabbix Agent 2 (6.2.4)
      2022/11/16 13:06:47.982043 cannot use encryption configuration: invalid TLSPSKFile configuration parameter: open C:\Program Files\Zabbix Agent 2\psk.key: The system cannot find the file specified.
      Expected:

      a few lines from the log file after the fix:
      2022/11/16 13:21:25.989774 Starting Zabbix Agent 2 (6.2.4)
      2022/11/16 13:21:25.993744 OpenSSL library (OpenSSL 1.1.1k  25 Mar 2021) initialized
      2022/11/16 13:21:25.993744 using configuration file: C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf
      2022/11/16 13:21:25.994252 using plugin 'Agent'...............

            zabbix.dev Zabbix Development Team
            giab Brian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: