[packages/nagios-plugin-check_webinject] new, version 1.84
glen
glen at pld-linux.org
Thu Aug 6 00:12:48 CEST 2015
commit 9951203500cff02b975b0d5bf5fe45da4919b8dc
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 6 01:12:19 2015 +0300
new, version 1.84
check_webinject.cfg | 28 ++++++++++++++++++++++++++
nagios-plugin-check_webinject.spec | 41 ++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
---
diff --git a/nagios-plugin-check_webinject.spec b/nagios-plugin-check_webinject.spec
new file mode 100644
index 0000000..f86607d
--- /dev/null
+++ b/nagios-plugin-check_webinject.spec
@@ -0,0 +1,41 @@
+%define plugin check_webinject
+%include /usr/lib/rpm/macros.perl
+Summary: Nagios plugin for testing web services
+Name: nagios-plugin-%{plugin}
+Version: 1.84
+Release: 1
+License: GPL v2+
+Group: Networking
+Source0: https://labs.consol.de/assets/downloads/%{plugin}-%{version}.tar.gz
+# Source0-md5: eafe5829884d6a2f922ee540bcc6d169
+Source1: %{plugin}.cfg
+URL: https://labs.consol.de/nagios/check_webinject/
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.654
+Requires: nagios-common
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir /etc/nagios/plugins
+%define plugindir %{_prefix}/lib/nagios/plugins
+
+%description
+check_webinject is a Nagios check plugin based on the Webinject Perl
+Module available on CPAN which is now part of the Webinject project.
+
+%prep
+%setup -qc
+
+%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_webinject.cfg b/check_webinject.cfg
new file mode 100644
index 0000000..760e0f3
--- /dev/null
+++ b/check_webinject.cfg
@@ -0,0 +1,28 @@
+# Usage:
+# ./check_webinject
+# [-c|--config config_file]
+# [-o|--output output_location]
+# [-n|--no-output]
+# [-t|--timeout]
+# [-r|--report-type]
+# [-s key=value]
+# [testcase_file [XPath]]
+
+define command {
+ command_name check_webinject
+ command_line /usr/lib/nagios/plugins/check_webinject $ARG1$
+}
+
+define service {
+ use generic-service
+ name webinject
+ service_description webinject
+ register 0
+
+ normal_check_interval 5
+ retry_check_interval 1
+
+ notification_interval 10
+
+ check_command check_webinject
+}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_webinject.git/commitdiff/9951203500cff02b975b0d5bf5fe45da4919b8dc
More information about the pld-cvs-commit
mailing list