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

Failed on-demand script executions fail on hosts running agent2 due to refreshActiveChecks

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.2.10, 7.2.11, 7.2.12rc1, 7.4.0, 7.4.1, 7.4.2rc1
    • Agent2 (G)
    • None

      Steps to reproduce:

      1. Create a manual host script
      2. Choose Type: Script
      3. Choose to execute it on the agent
      4. Script command: echo hello
      5. Execute Script

      Result:
      If the script is not executed within 30 seconds of the refresh active scripts starting, it will timeout.

      Expected:
      Script to executed successfully as soon as executed

       

       

      Scripts run fine if executed on server or if executed on the agent directly via zabbix-agent2 -t

       

      The issue does not exist on zabbix-agentd

       

      Zabbix agentd shows refresh_active_checks refreshing every x seconds based on the agent config

       

      zabbix agent2 ignores the config for Refreshactivechecks as seconds and treats them as minutes.  

      Enable the level 5 logging and grep the log for the refreshActiveChecks.  You can aline every timeout for a script executing outside of the 30 seconds of End of refreshActiveChecks.

       

      The closer you execute the script to the time of "End of refreshActiveChecks" the faster it executes.  

       

      This also explains why a script will normally execute instantly if you execute one as soon as you restart the agent.

       

       

            zabbix.support Zabbix Support Team
            sburkit Shawn Burkit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: