[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
Project: ZABBIX BUGS AND ISSUES
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
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL6.5



 Description   

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.



 Comments   
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 Sat Apr 20 03:36:34 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.