[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
nap
naparuba at gmail.com
Tue Feb 28 22:14:02 UTC 2012
The following commit has been merged in the debian/master branch:
commit 3c3e80ab09455d4dca7da08a84594c540b5232ca
Author: nap <naparuba at gmail.com>
Date: Sat Jan 14 22:17:15 2012 +0100
Add : real services in the EMC clariion template.
diff --git a/etc/packs/databases/mongodb/templates.cfg b/etc/packs/os/hpux/templates.cfg
similarity index 60%
copy from etc/packs/databases/mongodb/templates.cfg
copy to etc/packs/os/hpux/templates.cfg
index 4a7340e..b6aef9a 100644
--- a/etc/packs/databases/mongodb/templates.cfg
+++ b/etc/packs/os/hpux/templates.cfg
@@ -1,7 +1,8 @@
+# HPUX template
define host{
- name mongodb
+ name hpux
use generic-host
check_command check_ping
- register 0
+ register 0
}
diff --git a/etc/packs/storage/emc/commands.cfg b/etc/packs/storage/emc/commands.cfg
new file mode 100644
index 0000000..466b672
--- /dev/null
+++ b/etc/packs/storage/emc/commands.cfg
@@ -0,0 +1,45 @@
+# This comands need the NetWays check_emc_clariion.pl script at
+# http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/EMC-Clarion/check_emc_clariion-2Epl/details
+# or https://www.netways.org/projects/plugins/files
+
+
+# An EMC Clarriion got 2 SP: A and B. It's just a disk controler in fact
+# Remove -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ if you are a crazy guy you want to use navicli
+# and so let every one admin of your disk enclosures....
+define command {
+ command_name check_emc_spa
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t sp --sp A
+}
+
+define command {
+ command_name check_emc_spb
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t sp --sp B
+}
+
+# Check disks states. Very important!
+define command {
+ command_name check_emc_disks
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t disk
+}
+
+
+# Caches are iportant, especially the write one!
+define command {
+ command_name check_emc_cache
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t cache
+}
+
+
+# check if there are some faults in the device
+define command {
+ command_name check_emc_faults
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t faults
+}
+
+
+# Check FC port states
+define command {
+ command_name check_emc_ports
+ command_line $PLUGINSDIR$/check_emc_clariion.pl -H $HOSTADDRESS$ -u $NAVISECCLIUSER$ -p $NAVISECCLIPASSWORD$ -t portstate
+}
+
diff --git a/etc/packs/storage/emc/macros.cfg b/etc/packs/storage/emc/macros.cfg
new file mode 100644
index 0000000..9e5a86b
--- /dev/null
+++ b/etc/packs/storage/emc/macros.cfg
@@ -0,0 +1,4 @@
+
+# Default emc naviseccli user/pass. Change it!
+$NAVISECCLIUSER$=admin
+$NAVISECCLIPASSWORD$=admin
diff --git a/etc/packs/storage/emc/services/cache.cfg b/etc/packs/storage/emc/services/cache.cfg
new file mode 100644
index 0000000..74d8926
--- /dev/null
+++ b/etc/packs/storage/emc/services/cache.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description RWCaches
+ use generic-service
+ register 0
+ host_name emc-clariion
+ check_command check_emc_cache
+}
diff --git a/etc/packs/storage/netapp/services/disks.cfg b/etc/packs/storage/emc/services/disks.cfg
similarity index 61%
copy from etc/packs/storage/netapp/services/disks.cfg
copy to etc/packs/storage/emc/services/disks.cfg
index a26b3dd..9148263 100644
--- a/etc/packs/storage/netapp/services/disks.cfg
+++ b/etc/packs/storage/emc/services/disks.cfg
@@ -2,6 +2,6 @@ define service{
service_description Disks
use generic-service
register 0
- host_name netapp
- check_command check_netapp_disks
+ host_name emc-clariion
+ check_command check_emc_disks
}
diff --git a/etc/packs/storage/emc/services/faults.cfg b/etc/packs/storage/emc/services/faults.cfg
new file mode 100644
index 0000000..12a2f3d
--- /dev/null
+++ b/etc/packs/storage/emc/services/faults.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Faults
+ use generic-service
+ register 0
+ host_name emc-clariion
+ check_command check_emc_faults
+}
diff --git a/etc/packs/storage/emc/services/fc_ports.cfg b/etc/packs/storage/emc/services/fc_ports.cfg
new file mode 100644
index 0000000..e636283
--- /dev/null
+++ b/etc/packs/storage/emc/services/fc_ports.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description FC-ports
+ use generic-service
+ register 0
+ host_name emc-clariion
+ check_command check_emc_ports
+}
diff --git a/etc/packs/storage/netapp/services/disks.cfg b/etc/packs/storage/emc/services/spa.cfg
similarity index 61%
copy from etc/packs/storage/netapp/services/disks.cfg
copy to etc/packs/storage/emc/services/spa.cfg
index a26b3dd..9148263 100644
--- a/etc/packs/storage/netapp/services/disks.cfg
+++ b/etc/packs/storage/emc/services/spa.cfg
@@ -2,6 +2,6 @@ define service{
service_description Disks
use generic-service
register 0
- host_name netapp
- check_command check_netapp_disks
+ host_name emc-clariion
+ check_command check_emc_disks
}
diff --git a/etc/packs/storage/emc/services/spb.cfg b/etc/packs/storage/emc/services/spb.cfg
new file mode 100644
index 0000000..2289a3d
--- /dev/null
+++ b/etc/packs/storage/emc/services/spb.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description SPB
+ use generic-service
+ register 0
+ host_name emc-clariion
+ check_command check_emc_spb
+}
diff --git a/etc/packs/databases/mongodb/templates.cfg b/etc/packs/storage/emc/templates.cfg
similarity index 79%
copy from etc/packs/databases/mongodb/templates.cfg
copy to etc/packs/storage/emc/templates.cfg
index 4a7340e..49cbf14 100644
--- a/etc/packs/databases/mongodb/templates.cfg
+++ b/etc/packs/storage/emc/templates.cfg
@@ -1,6 +1,6 @@
define host{
- name mongodb
+ name emc-clariion
use generic-host
check_command check_ping
register 0
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list