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

check_ftp_fully

Last Release Date
2009-09-03
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Hits
97984

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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