Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Soporte de la comunidad Problema agente antiguo 1.3 para Solaris 8 con Servidor Pandora FMS 3.0

  • Problema agente antiguo 1.3 para Solaris 8 con Servidor Pandora FMS 3.0

    Posted by borjagb on March 26, 2010 at 15:25

    Buenos días,

    estoy tratando de utilizar un agente antiguo v1.3 en una maquina con Solaris 8 que no se puede actualizar (Intenté instalar la version del agente 3.0 pero se necesita instalar perl 5.8 y otras dependencias y de momento no se quiere actualizar la maquina)

    En nuestro servidor tengo Pandora FMS 3.0 en Ubuntu que detecta agentes 3.0 sin problemas pero no soy capaz de que conecte con el agente1.3 de Solaris 8.

    ¿Es esto posible?
    ¿Son incompatibles?
    ¿Hay alguna solución para monitorizar la maquina de solaris 8 sin actualizarla?

    Muchas gracias

    borjagb replied 14 years, 8 months ago 3 Members · 12 Replies
  • 12 Replies
  • daniels

    Member
    March 26, 2010 at 18:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ————————————————————-
    English version
    ————————————————————-

    Good morning,

    I’m trying to use an old agent v1.3 on a machine with Solaris 8 that can
    not be upgraded (I tried installing the official version 3.0 but you
    need to install perl 5.8 and other dependences and do not want to
    upgrade the machine)

    In our Server with Pandora FMS 3.0 on Ubuntu agents3.0 installed in
    other machines with Solaris 10 are detected without problems but I am
    unable to connect to the agente 1.3 in Solaris 8.

    Is this possible?
    Are they incompatible?
    Is there a solution to monitor the machine solaris 8 without upgrade it?

    ————————————————————-
    English version – answer
    ————————————————————-
    I had some 1.3 agents running at solaris talking with my 3.0 server without problems.

    Are you using tentacle? Try ssh. Tentacle was not available at 1.3 version.

    I hope this helps. Regards.

  • borjagb

    Member
    March 26, 2010 at 18:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi! thanks for your answer.

    I tried with ftp and ssh but nothing. I think the problem is in my ssh key and in my ftp user and password file. Can you tell me how can I go through this?

    port 22 and 21 are open.

    Thanks!

  • borjagb

    Member
    March 26, 2010 at 19:33
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi, this is what I get:
    arce# ssh -v pandora@ip_server
    SSH Version 1.2.30 [sparc-sun-solaris2.6], protocol version 1.5.
    Standard version.  Does not use RSAREF.
    arce: Reading configuration data /etc/ssh_config
    arce: ssh_connect: getuid 0 geteuid 0 anon 0
    arce: Allocated local port 1023.
    arce: Connecting to ip_server port 22.
    arce: Connection established.
    arce: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-3ubuntu1
    arce: Waiting for server public key.
    Local: Bad packet length 1349676916

    So something is wrong with my key…

    thanks

  • daniels

    Member
    March 26, 2010 at 20:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Is it worked at the old server? Have you copied the public key of the client to the .ssh/authorized_keys in the pandora server?

    Let me know if you need further assistance.

    Regards.

  • borjagb

    Member
    March 29, 2010 at 11:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes,

    I generate the key with “ssh-keygen -f dsa” in client, then I copied the file generated “dsa.pub” and I uploaded with ftp to my server at /home/pandora/.ssh/authorized_keys

    And still does not work…

    Do I have to do anything else?

    Thanks!

  • borjagb

    Member
    March 29, 2010 at 15:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I also tried with another agent installed in SOalris 9 and I can get connected to my server using ssh but always ask for password. If y put ssh_config with PubkeyAuthentication yes and PasswordAuthentication no it shows: “Unable to find an authentication method” so it can not get access to my server key I guess….

  • daniels

    Member
    March 29, 2010 at 18:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    What user are you using to make the ssh connection? You have to generate the key with the user that runs the agent_client.

    Check the permissions of the directory authorized_keys (I had problems with this once… ssh complained about too much permission):

    640 for authorized_keys (-rw-r—–)

    Remember that the key generated could not have a “pass phrase”

    obs: The spanish post from Raul (http://openideas.info/smf/index.php/topic,132.msg456.html#msg456) solved your problem?

  • borjagb

    Member
    March 30, 2010 at 20:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi, I got connection using ssh with one machine tha uses Solaris 9 but still have problems with Solaris 8.

    # ssh-keygen -t dsa
    ssh-keygen: illegal option — t
    ssh-keygen version 1.2.30
    Usage: ssh-keygen [-b bits] [-p] [-c] [-u] [-f file] [-P pass]
              [-N new-pass] [-C comment]

    So I can not get dsa or rsa key…

    Another machine with Solaris 8 has not ssh installed and I tried with FTP transfer protocol but Pandora FMS does not detect it. I can connect using ftp server_ip without using password because I used .netrc file but I don’t know what else do I have to do….

    Thanks for your help!

    By the way I check the url you send me but I can not get access to
    http://www.openideas.info/phpbb/viewtopic.php?p=647#647

  • borjagb

    Member
    March 31, 2010 at 19:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi!

    I realized that FTP is not implemented in Solaris Agent 1.3.

    I added this to /usr/share/pandora_agent/pandora_agent file:

    # Send packets to server and delete it
    if [ “$TRANSFER_MODE” = “ssh” ]
          then
                    scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2>  $PANDORA_LOGFILE.err
            fi

            if [ “$TRANSFER_MODE” = “ftp” ]
            then
                    #ftp $SERVER_IP > /dev/null 2> $PANDORA_LOGFILE.err
                    ftp $SERVER_IP <<EOF
    prompt
    mput $PANDORA_FILES
    quit
    EOF

            Fi

    bur it does not connect right…

    Is there any option to do it???

  • Sancho

    Administrator
    April 5, 2010 at 02:11
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Try using the .netrc method or reusing code from the 3.0 linux/bash version:

    ftp -n $SERVER_IP $SERVER_PORT > /dev/null 2> $PANDORA_LOGFILE.err <<FEOF1
    quote USER pandora
    quote PASS $SERVER_PWD
    lcd "$DIRNAME"
    cd "$SERVER_PATH"
    put "$BASENAME"
    quit
    FEOF1

    Good luck !

  • borjagb

    Member
    April 5, 2010 at 12:56
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi! the solution is:

    if [ “$TRANSFER_MODE” = “ftp” ]
      then
      echo “$TIMESTAMP – [url] – ” >> $PANDORA_HOME/pandora.log
      ftp -i $SERVER_IP <> $PANDORA_HOME/pandora.log
    fi

    you need the .netrc file with user and password.

    Thanks!

  • borjagb

    Member
    April 7, 2010 at 18:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Remember to comment this lines after you check everything is ok in the log:

    #echo “$TIMESTAMP – [url] – ” >> $PANDORA_HOME/pandora.log
    #echo “$TIMESTAMP – [END FTP] – ” >> $PANDORA_HOME/pandora.log