SPECS: nagios-plugin-check_multipath.spec (NEW) - new

glen glen at pld-linux.org
Wed Oct 24 23:16:00 CEST 2007


Author: glen                         Date: Wed Oct 24 21:16:00 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   nagios-plugin-check_multipath.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/nagios-plugin-check_multipath.spec
diff -u /dev/null SPECS/nagios-plugin-check_multipath.spec:1.1
--- /dev/null	Wed Oct 24 23:16:00 2007
+++ SPECS/nagios-plugin-check_multipath.spec	Wed Oct 24 23:15:55 2007
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%define		_plugin	check_multipath
+Summary:	Nagios plugin to check the state of Linux device mapper multipath devices.
+Name:		nagios-plugin-%{_plugin}
+Version:	1.0
+Release:	0.1
+License:	GPL v2
+Group:		Networking
+Source0:	%{name}.sh
+URL:		http://tinyurl.com/2aunjl
+Requires:	nagios-core
+Requires:	sudo
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_plugindir	%{_prefix}/lib/nagios/plugins
+%define		_sysconfdir	/etc/nagios/plugins
+
+%description
+Nagios plugin to check the state of Linux device mapper multipath devices.
+
+%prep
+%setup -qcT
+install %{SOURCE0} %{_plugin}
+
+cat > nagios.cfg <<'EOF'
+# Usage:
+# %{_plugin}
+define command {
+	command_name    %{_plugin}
+	command_line    %{_plugindir}/%{_plugin}
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}}
+install %{_plugin} $RPM_BUILD_ROOT%{_plugindir}/%{_plugin}
+cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{_plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%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  2007/10/24 21:15:55  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list