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

Zabbix Agent 2 on Windows crashes when using external UserParameter script

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • 5.0.10, 5.0.11
    • Agent (G)
    • None
    • Windows 2021 server

      Steps to reproduce:

      1. Zabbix Agent2 service process on windows 2012 crashing without any log or eventlog traces even in DEBUG mode, id the agent is configured to execute external UserParameter script. 
      2. The crash occurs cca after 5-20 minutes of Zabbix Agent 2 run, at least some data is sent into Zabbix Sever before the agent 2 crashes.
      3. In our environment, the powershell script for Hyper-V monitoring (https://share.zabbix.com/virtualization/hyper-v/template-microsoft-hyper-v-host) has been triggered by Zabbix Agent2 in active mode.
      4. Zabbix Agent2 on other windows servers without running UserParameter script works well
      5. We tested agent 2 versions 5.0.8, 5.0.10 and 5.0.11 - every version is affected by this bug.
      6. When downgraded to Zabbix Agent 1 (5.0.11) the agent 1 with forementioned powershell script works flawless.

      Result:
      Zabbix agent2 is crashed
      Expected:

        1. hyperv_host.ps1
          9 kB
        2. image-2021-05-05-13-59-04-964.png
          image-2021-05-05-13-59-04-964.png
          27 kB
        3. zabbix_agent2.conf
          22 kB
        4. zabbix_agent2.log
          256 kB

            zabbix.support Zabbix Support Team
            kbelunek Karel Bělunek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: