Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21337

"Cannot read data from SSH server" happens when SSH agent script includes |(pipe)

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 6.0.6
    • Documentation (D)
    • None
    • "Server&Client: CentOS 8 with libssh-0.8.5-2.el8.x86_64"
      or
      "Server&Client: Ubuntu 20.04 with libssh2-1:amd64 1.8.0-2.1build1
      amd64 SSH2 client-side library"
    • Sprint 90 (Jul 2022), Sprint 91 (Aug 2022)
    • 1

      Steps to reproduce:
      Set Items like below, wait several minutes.

      If "Executed script" has pipe(ex. ps aux |grep zabbix), below error happens.
      No pipe(ex. ps aux), no errors.

          2437:20220714:154615.536 item "linux_test:ssh.run[test]" became not supported: Cannot read data from SSH server
        2434:20220714:154740.596 item "linux_test:ssh.run[test]" became supported
        2435:20220714:155139.757 item "linux_test:ssh.run[test]" became not supported: Cannot read data from SSH server
        2435:20220714:155539.932 item "linux_test:ssh.run[test]" became supported
        2437:20220714:155739.995 item "linux_test:ssh.run[test]" became not supported: Cannot read data from SSH server
        2434:20220714:155940.076 item "linux_test:ssh.run[test]" became supported
        

      Expected:
      No error "SSH agent" script with |(pipe)

            martins-v Martins Valkovskis
            yIn Syusei YIn
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: