Welcome to Pandora FMS Community!

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

Bienvenido a la comunidad de Pandora FMS Forums Community support added functionnality: choice of scp port

  • added functionnality: choice of scp port

    Posted by daggett on diciembre 5, 2006 at 19:30

    Hi all,
    I added a useful (for me at least) functionnality to the agent configuration:
    the configuration of the scp port in pandora_agent.sh
    at the beginning of the file:
    if [ ! -z “`echo $a | grep -e ‘^server_port’`” ]
    then
    SERVER_PORT=`echo $a | awk ‘{ print $2 }’ `
    echo “$TIMESTAMP – [SETUP] – Server IP Address is $SERVER_PORT” >> $PANDORA_HOME/pandora.log
    fi
    at the end:
    scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null

    And in the pandora_agent.conf file:
    server_ip MyDNSServerName
    server_port 22
    server_path /opt/pandora/pandora_server/data_in

    I needed this functionnality, so I added it!
    by
    Denis

    manu replied 18 years, 2 months ago 4 Members · 3 Replies
  • 3 Replies
  • raul

    Member
    diciembre 5, 2006 at 20:06
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank you for your contrib! 😉

    We’ll take a look at your code, but will not be in the Pandora 1.2… WE HAVE JUST RELEASED IT!!!!!!!
    http://pandora.sourceforge.net/en/index.php?sec=downloads

    Raul

  • Sancho

    Administrator
    diciembre 5, 2006 at 21:00
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi all,
    I added a useful (for me at least) functionnality to the agent configuration:
    the configuration of the scp port in pandora_agent.sh
    at the beginning of the file:
    if [ ! -z “`echo $a | grep -e ‘^server_port’`” ]
    then
    SERVER_PORT=`echo $a | awk ‘{ print $2 }’ `
    echo “$TIMESTAMP – [SETUP] – Server IP Address is $SERVER_PORT” >> $PANDORA_HOME/pandora.log
    fi
    at the end:
    scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null

    And in the pandora_agent.conf file:
    server_ip MyDNSServerName
    server_port 22
    server_path /opt/pandora/pandora_server/data_in

    I needed this functionnality, so I added it!
    by
    Denis

    Thanks!, it has been added to code repository and will be published for 1.3 version.

  • manu

    Member
    diciembre 6, 2006 at 17:50
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Well done Dagget!
    Maybe we could also add debug option (I mean, -v -v -v) to the scp