[ZBX-18621] Zabbix ssh.run item breaks on Zabbix version 4.0.26 for agentless ssh checks Created: 2020 Nov 06  Updated: 2021 Jul 09  Resolved: 2021 Jul 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Izak Eygelaar Assignee: Zabbix Support Team
Resolution: Won't Do Votes: 0
Labels: net.ssh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
depends on ZBX-17756 SSH. Run will often report an error: ... Closed

 Description   

After upgrading from Zabbix 4.0.25 to Zabbix 4.0.26 the net.ssh items go into an unsupported state due to "Cannot read data from SSH server".

 

With the upgrade to Zabbix 4.0.26 the libssh-4 (0.8.7-1+deb10u1) library looks like a new dependancy and is also installed.

 

System:

  • OS: Debian 10
  • Zabbix server

zabbix_server -V

zabbix_server (Zabbix) 4.0.26
Revision eb5a408168 26 October 2020, compilation time: Oct 21 2020 16:24:53

Compiled with OpenSSL 1.1.1d 10 Sep 2019
Running with OpenSSL 1.1.1d 10 Sep 2019

 

Debug logs:

{{ 1603:20201106:081018.042 In substitute_key_macros() data:'ssh.run[DiskSpace,10.0.0.136,22,]'}}
{{ 1603:20201106:081018.042 End of substitute_key_macros():SUCCEED data:'ssh.run[DiskSpace,10.0.0.136,22,]'}}
{{ 1603:20201106:081018.042 In get_value() key:'ssh.run[DiskSpace,10.0.0.136,22,]'}}
{{ 1603:20201106:081018.204 Item [test_node1:ssh.run[DiskSpace,10.0.0.136,22,]] error: Cannot read data from SSH server}}
{{}}

On Zabbix version 4.0.25 the exact same check works 100%.

 



 Comments   
Comment by Izak Eygelaar [ 2020 Nov 06 ]

Maybe some more info:

  • Auth method: username/password
  • Executed script: du -chs|awk 'NR==1{print $1}'|tr -d "G"

Package versions:

dpkg -l | grep zab
ii  zabbix-frontend-php            1:4.0.26-1+buster            all          Zabbix network monitoring solution - PHP front-end
ii  zabbix-release                 1:4.0-3+buster               all          Zabbix official repository configuration
ii  zabbix-server-mysql            1:4.0.26-1+buster            amd64        Zabbix network monitoring solution - server (MySQL)
dpkg -l | grep libssh
ii  libssh-4:amd64                 0.8.7-1+deb10u1              amd64        tiny C SSH library (OpenSSL flavor)
ii  libssh2-1:amd64                1.8.0-2.1                    amd64        SSH2 client-side library
Comment by Edgar Akhmetshin [ 2020 Nov 09 ]

Hello, looks like ZBX-17756 issue with bug from upstream: https://gitlab.com/libssh/libssh-mirror/-/merge_requests/101

Could you check with fresh libssh?

Regards,
Edgar

Generated at Thu May 15 07:14:01 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.