[packages/nagios-plugin-check_ftp_fully: 4/4] fix usage error

glen glen at pld-linux.org
Wed Mar 25 11:00:58 CET 2015


commit e33878fe4c60b42aaf6218df71682e57c7d5ae3d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 25 11:59:35 2015 +0200

    fix usage error
    
    an error that needed to be fixed and was fixed according to this:
    http://www.opsview.com/forum/opsview-enterprise-edition/latest-release/nagios-plugin-works-command-line-not-opsview

 args.patch                         | 11 +++++++++++
 nagios-plugin-check_ftp_fully.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/nagios-plugin-check_ftp_fully.spec b/nagios-plugin-check_ftp_fully.spec
index b418688..6157b98 100644
--- a/nagios-plugin-check_ftp_fully.spec
+++ b/nagios-plugin-check_ftp_fully.spec
@@ -9,6 +9,7 @@ Group:		Networking
 Source0:	http://www.deathwing00.org/nagios/check_ftp_fully
 # Source0-md5:	821dbac0cc911e8250e41d7cca56cc62
 Source1:	%{plugin}.cfg
+Patch0:		args.patch
 URL:		http://exchange.nagios.org/directory/Plugins/Network-Protocols/FTP/check_ftp_fully/details
 Requires:	lftp
 Requires:	nagios-common
@@ -29,6 +30,7 @@ be extended easily.
 %prep
 %setup -qcT
 cp -p %{SOURCE0} %{plugin}
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/args.patch b/args.patch
new file mode 100644
index 0000000..e2e4c4c
--- /dev/null
+++ b/args.patch
@@ -0,0 +1,11 @@
+--- ./check_ftp_fully	2010-03-16 06:12:56.000000000 +0200
++++ ./check_ftp_fully	2015-03-25 11:57:12.000000000 +0200
+@@ -102,7 +102,7 @@
+ fi
+ 
+ # Get test
+-${LFTP} -u ${USERNAME},${PASSWORD} -p${PORT} -e "LCD ${FILEDIR}; GET ${FILENAME}; quit" ${HOSTNAME} &> /dev/null
++${LFTP} -u ${USERNAME},${PASSWORD} -p${PORT} -e "GET ${FILENAME}; quit" ${HOSTNAME} &> /dev/null
+ result=$?
+ if [ ${result} != 0 ]; then
+     f_cri "FTP check failed when trying to get a file from a directory."
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_ftp_fully.git/commitdiff/e33878fe4c60b42aaf6218df71682e57c7d5ae3d



More information about the pld-cvs-commit mailing list