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

SSH check - report only first row

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.4.7
    • Documentation (D)
    • Server: Oracle Linux 3.8.13-118.

      On zabbix server (OS OL7) i made a SSH check to FreeBSD server 10.2 -p6 (without zabbix agent installed and with ssh version OpenSSH_6.6.1p1, OpenSSL 1.0.1p-freebsd 9 Jul 2015).
      Everything is OK, but result output is the only first row.(see attachment)
      example:
      type: SSH agent
      type information : text
      Executed script:
      ps | grep bin
      Latest data value:
      0

      example:
      type: SSH agent
      type information : text
      Executed script:
      ps
      Latest data value:
      PID TT STAT TIME COMMAND

      instead of:

      # ps
        PID TT  STAT    TIME COMMAND
        685 v0- I    0:06.06 /bin/sh /usr/local/sbin/xe-daemon -p /var/run/xe-daemon.pid
        687 v0- I    0:06.08 /bin/sh /usr/local/sbin/xe-daemon -p /var/run/xe-daemon.pid
       4532 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
       1010 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
       1011 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
       1012 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
       1013 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
       1014 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
       1015 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
       1016 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
      

      example:
      type: SSH agent
      type information : text
      Executed script:
      ps | grep bin
      Latest data show:
      (empty)
      instead of:

       # ps | grep bin
        685 v0- I    0:06.06 /bin/sh /usr/local/sbin/xe-daemon -p /var/run/xe-daemon.pid
        687 v0- I    0:06.08 /bin/sh /usr/local/sbin/xe-daemon -p /var/run/xe-daemon.pid
      

        1. ps.png
          ps.png
          147 kB
        2. result-pid.png
          result-pid.png
          20 kB
        3. Screen Shot 2015-11-19 at 17.52.30.png
          Screen Shot 2015-11-19 at 17.52.30.png
          76 kB
        4. Screen Shot 2015-11-20 at 17.23.02.png
          Screen Shot 2015-11-20 at 17.23.02.png
          26 kB
        5. server_installed_packages
          83 kB
        6. truncated.png
          truncated.png
          226 kB

            Unassigned Unassigned
            sysops sysops
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: