Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problema agente antiguo 1.3 para Solaris 8 con Servidor Pandora FMS 3.0
#11
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 !
 Reply
#12
Hi! the solution is:

if [ "$TRANSFER_MODE" = "ftp" ]
  then
  echo "$TIMESTAMP - [url] - " >> $PANDORA_HOME/pandora.log
  ftp -i $SERVER_IP <<EOF
  lcd $TEMP
  mput *
  quit
  EOF
  echo "$TIMESTAMP - [END FTP] - " >> $PANDORA_HOME/pandora.log
fi

you need the .netrc file with user and password.

Thanks!
 Reply
#13
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

 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes