packages: nagios-plugin-check_raid/nagios-plugin-check_raid.spec, nagios-pl...
glen
glen at pld-linux.org
Wed Sep 9 16:25:25 CEST 2009
Author: glen Date: Wed Sep 9 14:25:25 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 2.0, added config
---- Files affected:
packages/nagios-plugin-check_raid:
nagios-plugin-check_raid.spec (1.1 -> 1.2) , check_raid.cfg (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec
diff -u packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec:1.1 packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec:1.2
--- packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec:1.1 Wed Sep 9 15:59:19 2009
+++ packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec Wed Sep 9 16:25:20 2009
@@ -2,12 +2,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)
@@ -18,29 +20,26 @@
%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, at 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}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -49,5 +48,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2009/09/09 14:25:20 glen
+- updated to 2.0, added config
+
Revision 1.1 2009/09/09 13:59:19 glen
- new
================================================================
Index: packages/nagios-plugin-check_raid/check_raid.cfg
diff -u /dev/null packages/nagios-plugin-check_raid/check_raid.cfg:1.1
--- /dev/null Wed Sep 9 16:25:25 2009
+++ packages/nagios-plugin-check_raid/check_raid.cfg Wed Sep 9 16:25:20 2009
@@ -0,0 +1,19 @@
+# Usage:
+# check_raid
+define command {
+ command_name check_raid
+ command_line @plugindir@/check_raid $ARG1$
+}
+
+define service {
+ use generic-service
+ name raid
+ service_description raid
+ register 0
+
+ normal_check_interval 30
+ retry_check_interval 10
+ notification_interval 120
+
+ check_command check_raid
+}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list