[ZBXNEXT-691] Agent: parallel active checks Created: 2009 Apr 16  Updated: 2021 May 13  Resolved: 2021 May 12

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: New Feature Request Priority: Major
Reporter: Alexei Vladishev Assignee: Unassigned
Resolution: Workaround proposed Votes: 35
Labels: activeagent, consistency, multiple, performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
causes ZBX-16220 Add zabbix agent logging about active... Closed
Duplicate
is duplicated by ZBXNEXT-2691 the values are delayed for active che... Closed
is duplicated by ZBXNEXT-3703 Zabbix agent, use several threads for... Closed
is duplicated by ZBX-11448 Fork or increase Zabbix agent active ... Closed

 Description   

Currently two problems exists:

1. Active checks are delayed in case of connection problems with the server. No active checks are processed when sending data to the server.
2. Only one thread (process) deal with active checks. Can cause significant delays.



 Comments   
Comment by Uli Stärk [ 2012 Jan 24 ]

any status update here?

Comment by richlv [ 2012 Jan 24 ]

nothing planned in short term

Comment by Uli Stärk [ 2012 Jan 24 ]

Just saw in 1.9 that the agent configuration parameter Timeout=N is taken into account when executing active checks (via zbx_execute) and will terminate any process running for too long:
2307:20120124:182905.658 In zbx_popen() command:' /bin/sleep 5 && echo 1'
2307:20120124:182908.660 zbx_waitpid() killed by signal 15
2307:20120124:182908.660 End of zbx_waitpid():2308
2307:20120124:182908.660 For key [testitem] received value [ZBX_NOTSUPPORTED]

This is a basic protection against unexpected socket-timeouts.

I also noticed that in src/libs/zbxexec/execute.c:244 the debug info is missing and added the following:

        const char      *__function_name = "zbx_execute";
        zabbix_log(LOG_LEVEL_DEBUG, "In %s(): command:'%s', timeout:%d", __function_name, command, timeout);
Comment by bunkzilla [ 2018 Mar 24 ]

would be great if the active agent supported parallel active checks!!

Comment by Alexei Vladishev [ 2019 Oct 01 ]

The new Zabbix agent implemented under ZBXNEXT-5453 supports parallel execution of both active and passive checks.

Comment by Alexei Vladishev [ 2021 May 12 ]

I think we can close it. Please use Agent2 for parallel checks and extra flexibility.

Comment by Xavier Rodriguez [ 2021 May 12 ]

Yes, Zabbix Agent 2 supports parallel checks.

Thanks!

Comment by Glebs Ivanovskis [ 2021 May 13 ]

alexei, there is still one open duplicate — ZBXNEXT-2691. Perhaps, should be closed too.

By the way, has agent (1) support reached the point when all feature requests can be turned around if "use Agent2" is available as a workaround?

Generated at Sat Apr 20 10:14:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.