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

Zabbix Agent 2 stops when global script runs

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.0.1rc2, 7.2.0alpha1 (master)
    • 7.0.0, 7.2.0alpha1 (master)
    • Agent (G)
    • None
    • Zabbix Agent 2 - 7.0.0
      Zabbix Server - 7.0.0
      Zabbix Frontend - 7.0.0
      Database - MySQL 8.0.37
      Windows 11 Enterprise version 21H2
    • S24-W26/27, S24-W28/29
    • 1

      Steps to reproduce:

      1. Install Zabbix Agent 2 in version 7.0.0 on Windows host (I installed via zip package)
      2. Enable PSK encryption
      3. Add line about AllowedKey to config file example:
        AllowKey=system.run[powershell.exe Get-Service 'Zabbix Agent 2',*]
      4. Restart Zabbix Agent 2 service
      5. Go to Zabbix Frontend to section Alerts -> Scripts -> Create script
      6. Select "Scope" to "Manual Host action", "Type" to "Script", "Execute on" to "Zabbix Agent" and put to the "Commands" value from system.run first parameter (example: powershell.exe Get-Service 'Zabbix Agent 2')
      7. Set bigger global timeout  (Administration -> General -> Timeouts) for script execution
      8. Go to Monitoring-> hosts page and run your script on specified windows host

      Result:

      Timeout of execution script occured on frontend (see below screenshot):

      Zabbix Agent stops without getting any info in logs on default debug level:

      When I'm testing key via "-t" option in agent. Everything works:

      Logs from Zabbix Agent with Debug level 3 and 4 are included in attachments. 

      Expected:
      On frontend should be visible output from requested command.

      Zabbix Agent should be up and running.

            arimdjonoks Artjoms Rimdjonoks
            Godfather Mateusz Dampc
            Team C
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 29h
                29h