FTP

check_ftp_rw

Description:

check_ftp_rw uses Perl Net::FTP and Net::FTPSSL to check ability to login, change directory, read and write test file to/from FTP and FTPS.

Current Version

1.0

Last Release Date

2011-07-06

Compatible With

License

GPL


Project Files
Project Notes
check_ftp_rw uses Perl Net::FTP and Net::FTPSSL to check ability to login, change directory, read and write test file to/from FTP and FTPS. It is based on check_hgsc_ftp (http://exchange.nagios.org/directory/Plugins/Network-Protocols/FTP/check_hgsc_ftp/details). Logs in to an FTP/FTPS server. Assumes anonymous login unless username/password are supplied. Optionally takes a directory or file to check. Will chdir to directory, if specified. Will download file (to /dev/null) if specified. Filename can be a relative path from the specified directory (or /, if no directory has been given), or an absolute path. Will write temporary file to current directory set by chdir and then delete it. If host isn't available, or can't be logged into, CRITICAL is returned. If the directory or file isn't available or file cannot be written, a WARNING is returned.
Reviews (3) Add a Review
Needs some updateing
by hugme, September 30, 2015

It's not mentioned but you'll need the perl library SSLFTP to run it (even if you're not using the ssl connection) The results are non-standard and only tells you if it worked. Correct result code but don't contain a "CRITICAL" or "OK", nor the name of the plugin, nor any statistical data.



problem in nagios
by Majed1, September 30, 2011

if you ever get the problem (service check did not exit properly) the open the plugin and edit the line use lib "/usr/local/nagios/libexec" ; to use lib "/usr/lib/nagios/plugins" ; or wherever the plugins are located. and i confused the output in the previous post between check_ftp and check_ftp_rw the output is as follows: ./check_ftp_rw.pl --host 10.1.1.11 --user profiland --password Profiland1 --dir /install --file checkftp.txt Connected to 10.1.1.11, logged in as profiland, chdir'ed to /install, downloaded checkftp.txt



works fine
by Majed, August 31, 2011

checks even if it can download a file from ftp by actually downloading it. at first it gave me big problems such as an error like this: Can't locate Net/FTPSSL.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux so i: #perl -MCPAN -e shell and installed Net::FTPSSL by issuing the command install Net::FTPSSL and it took over an hour to install because it had lots of dependencies and many connection refused errors, but it worked great in the end here is the nagios output: FTP OK - 0.035 second response time on port 21 [220 (vsFTPd 2.3.4)]



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.3 (3)
Favorites
0
Views
104,729