Ad Widget

Collapse

SSH on Ubuntu 10.10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZabIx2011
    Junior Member
    • Jan 2011
    • 7

    #1

    SSH on Ubuntu 10.10

    Hello,

    i am having a problem with the Zabbix SSH agent on Ubuntu 10.10.

    I'd like to use SSH checks but it always fails and the log file says:

    [SERVER61:ssh.run] error: Support of SSH parameters was not compiled in
    Installing Zabbix 1.8.2 out of the Ubuntu repository I am now wondering how i can recompile it with SSH support, without destroying anything and without overriding my previous check configuration .

    I have already installed and compiled libssh2 to the path /usr/src/libssh2/libssh2-1.2.7/ .

    I attached a screenshot of the UI, I hope the setup for the check is correct...

    As I am quite new to Ubuntu/Linux any help is welcome!
    Attached Files
    Last edited by ZabIx2011; 25-01-2011, 11:58.
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    You have 2 problems:

    1. You need a zabbix server with SSH support. This thread already discusses it and provides a solution.

    2. You need to use "SSH agent" instead of "Zabbix agent" in your item setup (I don't know how you got a "Zabbix agent" type with "SSH agent" specific fields).

    Hope this helps,
    JBo

    Comment

    • ZabIx2011
      Junior Member
      • Jan 2011
      • 7

      #3
      Hello JBo,

      thanks for the quick reply!

      to 1) I already followed the suggestions in the thread you mentioned, compiling libssh2 and compiling zabbix with
      Code:
      --with-ssh2=/path/to/libssh2
      Still i don't get it running, the check always turns to "not supported" and log file still indicated that SSH support is not activated:
      SSH2 support: NO
      and
      Support of SSH parameters was not compiled in
      Do i have to activate that SSH agent somehow?

      to 2) What do you mean with SSH agent instead of Zabbix Agent? I followed the documentation http://www.zabbix.com/documentation/...ent#ssh_checks and added ssh.run as the key after choosing SSH agent (see screenshot above).

      Did I miss a point?

      Lenny
      Last edited by ZabIx2011; 25-01-2011, 17:14.

      Comment

      • JBo
        Senior Member
        • Jan 2011
        • 310

        #4
        I have compiled zabbix on an Ubuntu 10.04.
        The only things I have done are:
        Code:
        apt-get install libssh2-1-dev
        and compile zabbix with --with-ssh2 option.

        I don't see any reason why it wouldn't work on Ubuntu 10.10.

        JBo

        Comment

        • JBo
          Senior Member
          • Jan 2011
          • 310

          #5
          I forgot to answer this part of your message:

          Originally posted by ZabIx2011
          to 2) What do you mean with SSH agent instead of Zabbix Agent? I followed the documentation http://www.zabbix.com/documentation/...config/items?s[]=ssh&s[]=agent#ssh_checks and added ssh.run as the key after choosing SSH agent (see screenshot above).

          Did I miss a point?
          Sorry, your setup in screenshot is correct. I don't know why I read "Zabbix agent" instead of "SSH agent" in type field (time to change my glasses)

          JBo

          Comment

          • ZabIx2011
            Junior Member
            • Jan 2011
            • 7

            #6
            Hello JBo,

            thanks for the hint with the direct install of the lib!

            I tried to do it like that, but without success. I installed libssh2 and compiled zabbix with-ssh2 support.

            The log file gives me the output attached below after restarting Apache server and zabbix-server.

            Did you specify the path for the ssh2 option?
            Attached Files

            Comment

            • JBo
              Senior Member
              • Jan 2011
              • 310

              #7
              Hi,

              Originally posted by ZabIx2011
              I tried to do it like that, but without success. I installed libssh2 and compiled zabbix with-ssh2 support.
              It may seem a stupid question but, did you install libssh2-1-dev or libssh2-1 only ?
              Development version is needed to compile Zabbix.

              Originally posted by ZabIx2011
              The log file gives me the output attached below after restarting Apache server and zabbix-server.
              It shows that ssh2 was not found.

              Originally posted by ZabIx2011
              Did you specify the path for the ssh2 option?
              No.

              My setup is a little bit different, Ubuntu 10.04 instead of 10.10 and Zabbix 1.9.1.
              Here is what I have done on a fresh install of Ubuntu 10.04:
              Code:
              apt-get install -y gcc libsnmp-dev libopenipmi-dev libssh2-1-dev libmysqlclient-dev  libcurl4-openssl-dev  
              
              ./configure --enable-server --enable-proxy --enable-agent --enable-ipv6 --with-mysql --with-libcurl --with-net-snmp --with-ssh2 --with-openipmi --with-ldap
              
              make install
              And what I get when Zabbix server is started:

              Code:
               23095:20110127:114217.762 Starting Zabbix Server. Zabbix 1.9.1 (revision 16507).
               23095:20110127:114217.763 ****** Enabled features ******
               23095:20110127:114217.763 SNMP monitoring:           YES
               23095:20110127:114217.763 IPMI monitoring:           YES
               23095:20110127:114217.763 WEB monitoring:            YES
               23095:20110127:114217.763 Jabber notifications:       NO
               23095:20110127:114217.763 Ez Texting notifications:  YES
               23095:20110127:114217.763 ODBC:                       NO
               23095:20110127:114217.763 SSH2 support:              YES
               23095:20110127:114217.763 IPv6 support:              YES
               23095:20110127:114217.763 ******************************
              Hope this helps,
              JBo

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 567

                #8
                Search the logfile that ./configure creates for 'ssh'.

                Comment

                Working...