-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.2.10, 7.2.11, 7.2.12rc1, 7.4.0, 7.4.1, 7.4.2rc1
-
None
Steps to reproduce:
- Create a manual host script
- Choose Type: Script
- Choose to execute it on the agent
- Script command: echo hello
- 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.