From 33a1c413edf3ca1e7f263e3d5e87e49bacedba37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 9 Sep 2009 13:59:19 +0000 Subject: [PATCH] - new Changed files: nagios-plugin-check_raid.spec -> 1.1 --- nagios-plugin-check_raid.spec | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 nagios-plugin-check_raid.spec diff --git a/nagios-plugin-check_raid.spec b/nagios-plugin-check_raid.spec new file mode 100644 index 0000000..b3ecf12 --- /dev/null +++ b/nagios-plugin-check_raid.spec @@ -0,0 +1,43 @@ +%define plugin check_raid +Summary: Nagios plugin to check current server's RAID status +Name: nagios-plugin-%{plugin} +Version: 0.1 +Release: 0.1 +License: Unknown +Group: Networking +# Source0Download: https://secure.opsera.com/wsvn/wsvn/opsview/trunk/opsview-core/nagios-plugins/check_raid?op=dl +Source0: %{plugin} +Requires: nagios-core +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _sysconfdir /etc/nagios/plugins +%define plugindir %{_prefix}/lib/nagios/plugins + +%description +This plugin reports the current server's RAID status. + +%prep +%setup -qcT +cp -p %{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 -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{plugindir}/%{plugin} -- 2.44.0