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

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


The following commit has been merged in the debian/master branch:
commit 73154547e1dd48c04c8c86069891f1219d7e226a
Author: Naparuba <naparuba at gmail.com>
Date:   Tue Jan 10 14:06:47 2012 +0100

    Add : netapp template that is using check_netapp2.

diff --git a/etc/packs/storage/netapp/commands.cfg b/etc/packs/storage/netapp/commands.cfg
new file mode 100644
index 0000000..c21ca39
--- /dev/null
+++ b/etc/packs/storage/netapp/commands.cfg
@@ -0,0 +1,47 @@
+# Netap commands are using check_netapp2
+
+define command {
+       command_name     check_netapp_cpu
+       command_line	$PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v CPULOAD
+}
+
+define command {
+       command_name     check_netapp_disks
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v DISKUSED
+}
+
+
+define command {
+       command_name     check_netapp_faileddisk
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v FAILEDDISK
+}
+
+define command {
+       command_name     check_netapp_fan
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v FAN
+}
+
+define command {
+       command_name     check_netapp_nvram
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v NVRAM
+}
+
+define command {
+       command_name     check_netapp_power_supply
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v PS
+}
+
+define command {
+       command_name     check_netapp_snapshots
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v SNAPSHOT
+}
+
+define command {
+       command_name     check_netapp_temperature
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v TEMP
+}
+
+define command {
+       command_name     check_netapp_uptime
+       command_line     $PLUGINSDIR$/check_netapp2 -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v UPTIME
+}
diff --git a/etc/packs/os/linux/cpu.cfg b/etc/packs/storage/netapp/cpu.cfg
similarity index 63%
copy from etc/packs/os/linux/cpu.cfg
copy to etc/packs/storage/netapp/cpu.cfg
index 19b6ce4..2011a4d 100644
--- a/etc/packs/os/linux/cpu.cfg
+++ b/etc/packs/storage/netapp/cpu.cfg
@@ -2,6 +2,6 @@ define service{
    service_description    Cpu
    use            	  generic-service
    register       	  0
-   host_name	  	  linux
-   check_command  	  check_linux_cpu
+   host_name	  	  netapp
+   check_command  	  check_netapp_cpu
 }
diff --git a/etc/packs/storage/netapp/discovery.cfg b/etc/packs/storage/netapp/discovery.cfg
new file mode 100644
index 0000000..e76eebc
--- /dev/null
+++ b/etc/packs/storage/netapp/discovery.cfg
@@ -0,0 +1,8 @@
+# NetApp is recognized by nmap. Thanks to them!
+define discoveryrule {
+       discoveryrule_name       NetApp
+       creation_type            host
+       osvendor			netapp
+       osfamily			data ontap
+       +use                     netapp
+}
diff --git a/etc/packs/storage/netapp/disks.cfg b/etc/packs/storage/netapp/disks.cfg
new file mode 100644
index 0000000..a26b3dd
--- /dev/null
+++ b/etc/packs/storage/netapp/disks.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Disks
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_disks
+}
diff --git a/etc/packs/storage/netapp/failed_disks.cfg b/etc/packs/storage/netapp/failed_disks.cfg
new file mode 100644
index 0000000..16651cd
--- /dev/null
+++ b/etc/packs/storage/netapp/failed_disks.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    FailedDisks
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_faileddisk
+}
diff --git a/etc/packs/storage/netapp/fan.cfg b/etc/packs/storage/netapp/fan.cfg
new file mode 100644
index 0000000..5f31119
--- /dev/null
+++ b/etc/packs/storage/netapp/fan.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Fan
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_fan
+}
diff --git a/etc/packs/storage/netapp/nvram.cfg b/etc/packs/storage/netapp/nvram.cfg
new file mode 100644
index 0000000..569745f
--- /dev/null
+++ b/etc/packs/storage/netapp/nvram.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    NVram
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_nvram
+}
diff --git a/etc/packs/storage/netapp/power_supply.cfg b/etc/packs/storage/netapp/power_supply.cfg
new file mode 100644
index 0000000..12d530f
--- /dev/null
+++ b/etc/packs/storage/netapp/power_supply.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    PowerSupply
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_power_supply
+}
diff --git a/etc/packs/storage/netapp/reboot.cfg b/etc/packs/storage/netapp/reboot.cfg
new file mode 100644
index 0000000..0d20c73
--- /dev/null
+++ b/etc/packs/storage/netapp/reboot.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Reboot
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_uptime
+}
diff --git a/etc/packs/storage/netapp/snapshots.cfg b/etc/packs/storage/netapp/snapshots.cfg
new file mode 100644
index 0000000..1a78bff
--- /dev/null
+++ b/etc/packs/storage/netapp/snapshots.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Snapshots
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_snapshots
+}
diff --git a/etc/packs/storage/netapp/temperature.cfg b/etc/packs/storage/netapp/temperature.cfg
new file mode 100644
index 0000000..0022cb7
--- /dev/null
+++ b/etc/packs/storage/netapp/temperature.cfg
@@ -0,0 +1,7 @@
+define service{
+   service_description    Temperature
+   use            	  generic-service
+   register       	  0
+   host_name	  	  netapp
+   check_command  	  check_netapp_temperature
+}
diff --git a/etc/packs/os/linux/templates.cfg b/etc/packs/storage/netapp/templates.cfg
similarity index 51%
copy from etc/packs/os/linux/templates.cfg
copy to etc/packs/storage/netapp/templates.cfg
index dee6388..7223032 100644
--- a/etc/packs/os/linux/templates.cfg
+++ b/etc/packs/storage/netapp/templates.cfg
@@ -1,6 +1,7 @@
-# The LINUX template. It's a standard host with a simple check_ssh
+# The NetApp template. It's a standard host with a simple check_ping and a
+# specific snmp community if need
 define host{
-   name				linux
+   name				netapp
    use				generic-host
    check_command           	check_ping
    register			0

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list