Pandora FMS Community

added functionnality: choice of scp port

daggett · 5 dic 2006, 19:30 · 4 mensajes · 93 visitas

  1. Inicio del debate

    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

  2. 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.

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

Entra en tu cuenta para publicar.