Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_ftp_fully

Last Release Date
2009-09-03
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Hits
101955
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This script uses lftp, a sophisticated ftp/http client, to check not only that a give FTP account is accessible, but that it is also able to list files and directories, to get and put files and to delete files. This simple script is fast, easy to configure, flexible and can be extended easily.
This script uses lftp, a sophisticated ftp/http client, to check not only that a give FTP account is accessible, but that it is also able to list files and directories, to get and put files and to delete files. This simple script is fast, easy to configure, flexible and can be extended easily.

Sometimes, things like SELinux, a failed network mount point or wrong permissions cause an FTP account to not work properly. With this check, you will be able to detect it immediately.
Reviews (2)
I added a local "rm -f" to make it work.
And added support for changeing the remote directory.

http://downloads.pc-dummy.net/nagios/check_ftp_fully
http://downloads.pc-dummy.net/nagios/check_ftp_fully.diff
LFTP won't just overwrite a local file

36a37
> FILEPUT=${FILEDIR}${FILENAME}.put
105c106
/dev/null
---
> ${LFTP} -u ${USERNAME},${PASSWORD} -p${PORT} -e "GET ${FILENAME} -o ${FILEPUT}; QUIT" ${HOSTNAME} &> /dev/null
109a111
> rm ${FILEPUT}
120d121