[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Naparuba naparuba at gmail.com
Tue Feb 28 22:12:12 UTC 2012


The following commit has been merged in the debian/master branch:
commit f877f892d111a63dffa5071411e5eb6f1fcb5192
Author: Naparuba <naparuba at gmail.com>
Date:   Fri Jan 6 16:24:47 2012 +0100

    Add : HPAsm dicovery rule and check. Also add HPblade check and a procurve template.

diff --git a/etc/discovery_rules.cfg b/etc/discovery_rules.cfg
index fbcef55..32dc09b 100644
--- a/etc/discovery_rules.cfg
+++ b/etc/discovery_rules.cfg
@@ -256,6 +256,7 @@ define discoveryrule {
 
 
 # HP Stuff
+# Blade check
 define discoveryrule {
        discoveryrule_name       HPBladeChassis
        creation_type            host
@@ -265,6 +266,15 @@ define discoveryrule {
        +use                     hp-blade-chassis
 }
 
+# Hp server check with hpasm
+define discoveryrule {
+       discoveryrule_name       HPAsm
+       creation_type            host
+       macvendor		hewlett packard
+       # HPASM server port
+       openports                ^2301$
+       +use                     hp-asm
+}
 
 
 
diff --git a/etc/packs/hp/hp-asm/commands.cfg b/etc/packs/hp/hp-asm/commands.cfg
new file mode 100644
index 0000000..cc60ee3
--- /dev/null
+++ b/etc/packs/hp/hp-asm/commands.cfg
@@ -0,0 +1,7 @@
+
+# check_hpasm check for the health of an Hp server
+# Need the good snmp value on the server, and all pollers to be enabled in the snmpd conf!
+define command {
+       command_name	check_hp_asm
+       command_line	$PLUGINSDIR$/check_hpasm -H $HOSTADDRESS$ -C "$_HOSTHP_ASM_COMMUNITY$"
+}
diff --git a/etc/packs/hp/hp-asm/health.cfg b/etc/packs/hp/hp-asm/health.cfg
new file mode 100644
index 0000000..3327042
--- /dev/null
+++ b/etc/packs/hp/hp-asm/health.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Hardware
+   use            	  generic-service
+   register       	  0
+   host_name	  	  hp-asm
+   check_command  	  check_hp_asm
+}
diff --git a/etc/packs/hp/hp-asm/templates.cfg b/etc/packs/hp/hp-asm/templates.cfg
new file mode 100644
index 0000000..6d21196
--- /dev/null
+++ b/etc/packs/hp/hp-asm/templates.cfg
@@ -0,0 +1,6 @@
+define host{
+   name			hp-asm
+   use			generic-host
+   register		0
+   _hp_asm_community	$SNMPCOMMUNITYREAD$
+}
diff --git a/etc/packs/hp/hp-blade-chassis/commands.cfg b/etc/packs/hp/hp-blade-chassis/commands.cfg
new file mode 100644
index 0000000..51800b1
--- /dev/null
+++ b/etc/packs/hp/hp-blade-chassis/commands.cfg
@@ -0,0 +1,7 @@
+
+# check_hpasm check for the health of an Hp server
+# Need the good snmp value on the server, and all pollers to be enabled in the snmpd conf!
+define command {
+       command_name	check_hp_bladechassis
+       command_line	$PLUGINSDIR$/check_hp_bladechassis -H $HOSTADDRESS$ -p -C $SNMPCOMMUNITY$
+}
diff --git a/etc/packs/hp/hp-blade-chassis/health.cfg b/etc/packs/hp/hp-blade-chassis/health.cfg
new file mode 100644
index 0000000..1be01ba
--- /dev/null
+++ b/etc/packs/hp/hp-blade-chassis/health.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Hardware
+   use            	  generic-service
+   register       	  0
+   host_name	  	  hp-blade-chassis
+   check_command  	  check_hp_bladechassis
+}
diff --git a/etc/packs/hp/hp-blade-chassis/templates.cfg b/etc/packs/hp/hp-blade-chassis/templates.cfg
new file mode 100644
index 0000000..edcc5a9b
--- /dev/null
+++ b/etc/packs/hp/hp-blade-chassis/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+   name			hp-blade-chassis
+   use			generic-host
+   register		0
+}
diff --git a/etc/packs/hp/procurve/templates.cfg b/etc/packs/hp/procurve/templates.cfg
new file mode 100644
index 0000000..c80ced2
--- /dev/null
+++ b/etc/packs/hp/procurve/templates.cfg
@@ -0,0 +1,5 @@
+define host{
+   name			procurve
+   use			generic-host
+   register		0
+}

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list