[ZBX-9104] Session Channel close might be done many times if SSH disconnection is failed. Created: 2014 Dec 03  Updated: 2017 May 30  Resolved: 2015 Feb 04

Status: Closed
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.8.20, 2.0.12, 2.2.6, 2.4.0
Fix Version/s: 2.0.15rc1, 2.2.9rc1, 2.4.4rc1, 2.5.0

Type: Incident report Priority: Major
Reporter: Hiroaki Nanma Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: pollers, ssh



We are monitoring SSH agents. If Session Chanel cannot be closed for some reasons during closing Session Chanel,
Poller is trying to close Session Chanel many times until ZabbixServer process is restarted.

Too many trials for the closure cause high cpu usage and enlarging the zabbix_server.log file where lots of
error messages for the failure of Session Chanel close are recorded.

For avoiding high cpu usage and enlarging the zabbix_server.log file, Poller should be more intelligent not to
try to close Session Chanel many times. It would be advised that the trial should not be done if the
return code is not LIBSSH2_ERROR_EAGAIN.

Comment by Igors Homjakovs (Inactive) [ 2015 Jan 27 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-9104

Comment by Alexander Vladishev [ 2015 Feb 02 ]

Take a look at my changes in r51954.

Thank you. Looks good.

Comment by Igors Homjakovs (Inactive) [ 2015 Feb 04 ]

Available in 2.0.15rc1 r51980, 2.2.9rc1 r51981, 2.4.4rc1 r51982, 2.5.0 (trunk) r51983.

Generated at Fri Jan 18 09:03:02 EET 2019 using JIRA 7.3.9#73021-sha1:26adfd3d76803e1a04219c5cd05b58dbafff0dbf.