[packages/nagios-plugin-check_ftp_fully: 1/4] new
glen
glen at pld-linux.org
Wed Mar 25 11:00:43 CET 2015
commit f6a196c696145241bcb2070a844ca4b2fa00dadd
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 25 11:54:35 2015 +0200
new
check_ftp_fully.cfg | 20 +++++++++++++++++
nagios-plugin-check_ftp_fully.spec | 45 ++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
---
diff --git a/nagios-plugin-check_ftp_fully.spec b/nagios-plugin-check_ftp_fully.spec
new file mode 100644
index 0000000..b418688
--- /dev/null
+++ b/nagios-plugin-check_ftp_fully.spec
@@ -0,0 +1,45 @@
+%define plugin check_ftp_fully
+Summary: Nagios plugin to check FTP transfers
+Summary(pl.UTF-8): Wtyczka Nagiosa sprawdzająca ...
+Name: nagios-plugin-%{plugin}
+Version: 0.1
+Release: 1
+License: GPL v2+
+Group: Networking
+Source0: http://www.deathwing00.org/nagios/check_ftp_fully
+# Source0-md5: 821dbac0cc911e8250e41d7cca56cc62
+Source1: %{plugin}.cfg
+URL: http://exchange.nagios.org/directory/Plugins/Network-Protocols/FTP/check_ftp_fully/details
+Requires: lftp
+Requires: nagios-common
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir /etc/nagios/plugins
+%define nrpeddir /etc/nagios/nrpe.d
+%define plugindir %{_prefix}/lib/nagios/plugins
+
+%description
+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.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
diff --git a/check_ftp_fully.cfg b/check_ftp_fully.cfg
new file mode 100644
index 0000000..c46b7e8
--- /dev/null
+++ b/check_ftp_fully.cfg
@@ -0,0 +1,20 @@
+# Usage:
+# check_ftp_fully
+define command {
+ command_name check_ftp_fully
+ command_line /usr/lib/nagios/plugins/check_ftp_fully -H $HOSTADDRESS$ $ARG1$
+}
+
+define service {
+ use generic-service
+ name ftp_fully
+ service_description ftp_fully
+ register 0
+
+ normal_check_interval 5
+ retry_check_interval 1
+
+ notification_interval 10
+
+ check_command check_ftp_fully
+}
================================================================
---- 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