Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_ftp_fully
2009-09-03
- Nagios 2.x
- Nagios 3.x
102426
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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.
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)
bypcdummy, November 20, 2014
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
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
bydaniel304, August 30, 2012
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
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