2006-12-05 Sancho Lerena <slerena@artica.es>
* linux/pandora_agent.sh: Added support for SSH port (contrib from Dagget). * linux/pandora_agent.conf: Added server_port feature. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
871e7e5935
commit
14fd1974f9
|
@ -1,3 +1,10 @@
|
|||
2006-12-05 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* linux/pandora_agent.sh: Added support for SSH port (contrib from
|
||||
Dagget).
|
||||
|
||||
* linux/pandora_agent.conf: Added server_port feature.
|
||||
|
||||
2006-11-27 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* linux/pandora_agent.sh: Added new distro detection
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
server_ip 192.168.50.100
|
||||
server_path /opt/pandora_server/data_in
|
||||
server_port 22
|
||||
pandora_path /opt/pandora_agent/
|
||||
temporal /opt/pandora_agent/data_out
|
||||
interval 300
|
||||
|
|
|
@ -41,6 +41,7 @@ DEBUG_MODE=0
|
|||
CONTADOR=0
|
||||
EXECUTE=1
|
||||
MODULE_END=0
|
||||
SERVER_PORT=22
|
||||
|
||||
echo "$TIMESTAMP - Reading general config parameters from .conf file" >> $PANDORA_HOME/pandora.log
|
||||
for a in `cat $PANDORA_HOME/pandora_agent.conf | grep -v -e "^#" | grep -v -e "^module" `
|
||||
|
@ -83,6 +84,12 @@ do
|
|||
CHECKSUM_MODE=`echo $a | awk '{ print $2 }' `
|
||||
echo "$TIMESTAMP - [SETUP] - Checksum is $CHECKSUM_MODE " >> $PANDORA_HOME/pandora.log
|
||||
fi
|
||||
# Contribution of daggett
|
||||
if [ ! -z "`echo $a | grep -e '^server_port'`" ]
|
||||
then
|
||||
SERVER_PORT=`echo $a | awk '{ print $2 }' `
|
||||
echo "$TIMESTAMP - [SETUP] - Server Port is $SERVER_PORT" >> $PANDORA_HOME/pandora.log
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
@ -269,7 +276,7 @@ do
|
|||
fi
|
||||
|
||||
# Send packets to server and detele it
|
||||
scp $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null
|
||||
scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null
|
||||
|
||||
if [ "$DEBUG_MODE" == "1" ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue