Closed guillaumechardin closed 1 year ago
With centengine service, the user is centreon-engine and the default directory is /
. I think it s the issue. You should move your current directory
Ok, specifying local destination full path correct the issue : --ftp-command="get,testwrite,/tmp/testwrite.txt"
Hello, it seems that FTP plugin fails on get command even if it actualy works. I upgrade to the lastest version today : centreon-plugin-Applications-Protocol-Ftp-20230810-100132.el8.noarch
I try to check a ftp server (filezilla server) with pu/get/delete command set.
Running from shell seems to be ok :
]# /usr/lib/centreon/plugins//centreon_protocol_ftp.pl --plugin=apps::protocols::ftp::plugin --hostname=fqdn --mode=commands --username="user" --password="pwd" --ftp-command="get,/testwrite.txt" OK: Response time 0.047 | 'time'=0.047;;;;
Command definition: $CENTREONPLUGINS$/centreon_protocol_ftp.pl --plugin=apps::protocols::ftp::plugin --hostname=$HOSTADDRESS$ --mode=commands --username="$_SERVICEFTP_USER$" --password="$_SERVICEFTP_PASSWORD$" --ftp-command="get,testwrite.txt"
Now from centreon : it fails :
From the server side view it succeed and after that an empty command seems to be issued, below some info from FTP server log.
Line before "error 501" is not seen when commands are run from bash interactively.