]> git.pld-linux.org Git - packages/nagios-plugin-check_raid.git/commitdiff
- updated to 2.0, added config
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Sep 2009 14:25:20 +0000 (14:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugin-check_raid.spec -> 1.2

nagios-plugin-check_raid.spec

index b3ecf12748d894b160564b90db0a8dde955abc6d..ce046b01e22d52e7bdfe0124fa08c3d8fcf9da10 100644 (file)
@@ -1,12 +1,14 @@
 %define                plugin  check_raid
 Summary:       Nagios plugin to check current server's RAID status
 Name:          nagios-plugin-%{plugin}
-Version:       0.1
+Version:       2.0
 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}
+# Source0-md5: 168cc7a68638ed2e07df81c4bd43603a
+URL:           http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed/1692.html;d=1
+Source1:       %{plugin}.cfg
 Requires:      nagios-core
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -17,27 +19,24 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This plugin reports the current server's RAID status.
 
+Supports:
+- IPS; Solaris, AIX, Linux software RAID; megaide
+- megaraid, mpt (serveraid), aacli (serveraid)
+
 %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}
+sed -e 's,@plugindir@,%{plugindir},' %{SOURCE1} > $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}
This page took 0.476798 seconds and 4 git commands to generate.