-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.0.0alpha2
-
Sprint 62 (Mar 2020), Sprint 63 (Apr 2020)
-
1
Problem description: According to the log files (debug level =4), for agent2 the HostInterfaceItem remote command is executed only on startup, but for the standard zabbix-agent this remote command is executed each RefreshActiveChecks period.
According to specification of ZBXNEXT-1740 the HostInterfaceItem remote command should be considered as an active check, so it should be checked once per RefreshActiveChecks interval, as it is currently done for the standard zabbix-agent.
Steps to reproduce:
- Have a Zabbix instance with agent2 configured. Agent2 is not running
- Edit agent2 config - spefify the following parameters:
DebugLevel=4
Comment parameter "Hostname"
HostnameItem=system.run[echo New_Host_Name]
HostMetadataItem=system.run[echo Host_Meta_Data]
HostInterfaceItem=system.run[echo Zabbix]
RefreshActiveChecks=60
Plugins.SystemRun.LogRemoteCommands=1 - Start agent2 and wait for a couple of minutes
- Open agent2 log file
Result: According to the agent2 log file agent2 launches HostInterfaceItem remote command only on startup, but HostMetadataItem - each 60 seconds.
Expected: Same as in case of standard zabbix-agent, agent2 should execute both HostInterfaceItem and HostMetadataItem once per RefreshActiveChecks interval.