packages: nagios-plugin-check_http_header/check_http_header.cfg (NEW), nagi...
glen
glen at pld-linux.org
Wed Feb 29 09:40:24 CET 2012
Author: glen Date: Wed Feb 29 08:40:24 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/nagios-plugin-check_http_header:
check_http_header.cfg (NONE -> 1.1) (NEW), nagios-plugin-check_http_header.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_http_header/check_http_header.cfg
diff -u /dev/null packages/nagios-plugin-check_http_header/check_http_header.cfg:1.1
--- /dev/null Wed Feb 29 09:40:24 2012
+++ packages/nagios-plugin-check_http_header/check_http_header.cfg Wed Feb 29 09:40:19 2012
@@ -0,0 +1,20 @@
+# Usage:
+# check_http_header
+define command {
+ command_name check_http_header
+ command_line /usr/lib/nagios/plugins/check_http_header -I $HOSTADDRESS$ $ARG1$
+}
+
+define service {
+ use generic-service
+ name template
+ service_description template
+ register 0
+
+ normal_check_interval 5
+ retry_check_interval 1
+
+ notification_interval 10
+
+ check_command check_http_header
+}
================================================================
Index: packages/nagios-plugin-check_http_header/nagios-plugin-check_http_header.spec
diff -u /dev/null packages/nagios-plugin-check_http_header/nagios-plugin-check_http_header.spec:1.1
--- /dev/null Wed Feb 29 09:40:24 2012
+++ packages/nagios-plugin-check_http_header/nagios-plugin-check_http_header.spec Wed Feb 29 09:40:19 2012
@@ -0,0 +1,55 @@
+# $Revision$, $Date$
+%define plugin check_http_header
+%include /usr/lib/rpm/macros.perl
+Summary: Nagios plugin to check HTTP header for text
+Name: nagios-plugin-%{plugin}
+Version: 0.01
+Release: 0.1
+License: GPL v2
+Group: Networking
+Source0: http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=2165&cf_id=24#/%{plugin}.pl
+# Source0-md5: f930e465dbd93e999058c578b158a952
+Source1: %{plugin}.cfg
+URL: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/check_http_header/details
+BuildRequires: rpm-perlprov >= 4.1-13
+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
+This plugin checks HTTP header for text. It's very rare task...
+Standard Nagios check_http checks only content for regexp existance.
+
+Retrieves header of HTTP response and looks in it's output for a given
+text (regexp). If the text is found returns OK, if not found returns
+CRITICAL, and UNKNOWN otherwise (connection error,...) plus a brief
+error description.
+
+%prep
+%setup -qcT
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{SOURCE0} $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}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/02/29 08:40:19 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list