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:30Hi 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/nullAnd in the pandora_agent.conf file:
server_ip MyDNSServerName
server_port 22
server_path /opt/pandora/pandora_server/data_inI needed this functionnality, so I added it!
by
Denismanu replied 18 years, 2 months ago 4 Members · 3 Replies -
3 Replies
-
::
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=downloadsRaul
-
::
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/nullAnd in the pandora_agent.conf file:
server_ip MyDNSServerName
server_port 22
server_path /opt/pandora/pandora_server/data_inI needed this functionnality, so I added it!
by
DenisThanks!, it has been added to code repository and will be published for 1.3 version.
-