[packages/nagios-plugin-check_cciss] - added check_hpsa command - added arguments - rel 2

baggins baggins at pld-linux.org
Thu Oct 11 13:03:08 CEST 2012


commit 4f593f3fcd9610468ac58267cf9ddbffc8e9fddb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 11 13:02:44 2012 +0200

    - added check_hpsa command
    - added arguments
    - rel 2

 nagios-plugin-check_cciss.spec | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/nagios-plugin-check_cciss.spec b/nagios-plugin-check_cciss.spec
index f0d43e2..86bf9a2 100644
--- a/nagios-plugin-check_cciss.spec
+++ b/nagios-plugin-check_cciss.spec
@@ -3,7 +3,7 @@ Summary:	Nagios plugin to check the status of HP Smart Array Hardware
 Name:		nagios-plugin-%{plugin}
 # revision from download page
 Version:	1.11
-Release:	1
+Release:	2
 License:	GPL
 Group:		Networking
 # http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=671&cf_id=35
@@ -31,10 +31,23 @@ install %{SOURCE0} %{plugin}
 
 cat > nagios.cfg <<'EOF'
 # Usage:
-# %{plugin}
+# %{plugin} [-v] [-p] [-e <number>] [-E <name>] [-s] [-d]
+#  -v                   = show status and informations about RAID
+#  -p                   = show detail for physical drives
+#  -e <number>          = exclude slot number
+#  -E <name>            = exclude chassis name
+#  -s                   = detect controller with HPSA driver (Hewlett Packard Smart Array)
+#  -d                   = use for debug (command line mode)
+#  -h                   = help information
+#  -V                   = version information
 define command {
 	command_name    %{plugin}
-	command_line    %{plugindir}/%{plugin}
+	command_line    %{plugindir}/%{plugin} $ARG1$
+}
+
+define command {
+	command_name    check_hpsa
+	command_line    %{plugindir}/%{plugin} -s $ARG1$
 }
 
 define service {
@@ -56,7 +69,7 @@ define service {
 
 	normal_check_interval   15
 	notification_interval   300
-	check_command           check_cciss -s
+	check_command           check_hpsa
 }
 EOF
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_cciss.git/commitdiff/4f593f3fcd9610468ac58267cf9ddbffc8e9fddb



More information about the pld-cvs-commit mailing list