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

Unable to Execute Scripts/Commands from Server to Agent2 (7.0.0)

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • 7.0.4rc1, 7.2.0alpha1 (master)
    • 7.0.0
    • None
    • Server OS: Red Hat 9.4 (64 bit)
      Proxy: Not Assessed
      Agent OS: Red Hat 9.3-9.4 (64 bit)
      Zabbix Server Version: 7.0.0
      Zabbix Agent 2 Version: 7.0.0
    • S24-W34/35
    • 1.5

      Steps to reproduce:

      1. Update Zabbix Server to 7.0.0
      2. Update Zabbix Agent 2 to 7.0.0
      3. Move configured host item to active monitoring (exclusively)
      4. Set host to use PSK encryption.
      5. Configure script execution in Web UI
      6. Configure script execution in Zabbix Agent 2 configuration (separated config using /etc/zabbix/zabbix_agent2.d/zabbix_SystemRun.conf
      7. Configure sudo privileges on RHEL host.
      8. Click Monitoring -> Hosts -> <Host> -> <Script>

      Result:
      Active Command Execution throws error "cannot find host AGENT interface"

      Expected:
      Remote Commands as designed in the Web UI should execute on the target host when either manually executed or executed as a remediation function on a trigger. Per 7.0 documentation (2 Passive and active agent checks (zabbix.com)), "Note that remote command execution on an active agent is supported since Zabbix agent 7.0. [...]"

        1. image-2024-07-05-00-33-05-006.png
          image-2024-07-05-00-33-05-006.png
          9 kB
        2. image-2024-07-05-00-45-29-186.png
          image-2024-07-05-00-45-29-186.png
          6 kB
        3. image-2024-07-05-00-45-40-021.png
          image-2024-07-05-00-45-40-021.png
          8 kB
        4. image-2024-07-05-01-00-32-309.png
          image-2024-07-05-01-00-32-309.png
          7 kB
        5. zabbix_agent2.conf
          0.3 kB
        6. zabbix_server.conf
          0.8 kB
        7. zabbix_sudoers
          0.2 kB
        8. zabbix_SystemRun.conf
          0.3 kB

            dgoloscapov Dmitrijs Goloscapovs
            MRedbourne_BR Michael Redbourne
            Team B
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2h
                2h