From c727f4c57a0f725bc604bd96aaec7db1476b7105 Mon Sep 17 00:00:00 2001 From: Thomas Niedermeier Date: Tue, 21 Feb 2017 13:47:30 +0100 Subject: [PATCH] ITL: Add RAID controller plugin check configurations refs #5019 Signed-off-by: Michael Friedrich --- doc/10-icinga-template-library.md | 18 +++++++++ itl/plugins-contrib.d/raid-controller.conf | 44 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 itl/plugins-contrib.d/raid-controller.conf diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index d2e278cf0..4c073e877 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2227,6 +2227,24 @@ hpasm_privprotocol | **Optional.** The private protocol for SNMPv3 (des\|aes\|a hpasm_servertype | **Optional.** The type of the server: proliant (default) or bladesystem. hpasm_eval-nics | **Optional.** Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If you get an error and think, it is not justified for your configuration, please tell me about it. (alwasy send the output of "snmpwalk -On .... 1.3.6.1.4.1.232" and a description how you setup your nics and why it is correct opposed to the plugins error message. +#### adaptec-raid + +The plugin [check_adaptec_raid](https://github.com/thomas-krenn/check_adaptec_raid) is a plugin to monitor Adaptec RAID controller through arcconf. + +Name | Description +--------------------------------|----------------------------------------------------------------------- +adaptec_controller_number | **Required.** Insert the controller number to monitor. +arcconf_path | **Required.** Insert the path to the arcconf binary, e.g. "/sbin/arcconf". + +#### lsi-raid + +The plugin [check_lsi_raid](https://github.com/thomas-krenn/check_lsi_raid) is a plugin to monitor MegaRAID RAID controller through storcli. + +Name | Description +--------------------------------|----------------------------------------------------------------------- +lsi_controller_number | **Required.** Insert the controller number to monitor. +storcli_path | **Required.** Insert the path to the storcli binary, e.g. "/usr/sbin/storcli". + #### smart-attributes The plugin [check_smart_attributes](https://github.com/thomas-krenn/check_smart_attributes) is a plugin to monitor the SMART values of SSDs and HDDs. diff --git a/itl/plugins-contrib.d/raid-controller.conf b/itl/plugins-contrib.d/raid-controller.conf new file mode 100644 index 000000000..d419bdf1a --- /dev/null +++ b/itl/plugins-contrib.d/raid-controller.conf @@ -0,0 +1,44 @@ +/* + * Icinga2 CheckCommand definitions to monitor RAID controller from Adaptec and Broadcom using + * the Adaptec RAID Monitoring Plugin and the LSI RAID Monitoring Plugin + */ + +object CheckCommand "adaptec-raid" { + import "plugin-check-command" + + command = [ PluginDir + "/check_adaptec_raid" ] + + arguments = { + "-C" = { + required = true + value = "$adaptec_controller_number$" + description = "Insert the controller number to be checked." + } + "-p" = { + required = true + value = "$arcconf_path$" + description = "Insert the path to arcconf (e.g. /sbin/arcconf)." + } + + vars.arcconf_path = "/sbin/arcconf" +} + +object CheckCommand "lsi-raid" { + import "plugin-check-command" + + command = [ PluginDir + "/check_lsi_raid" ] + + arguments = { + "-C" = { + required = true + value = "$lsi_controller_number$" + description = "Insert the controller number to be checked." + } + "-p" = { + required = true + value = "$storcli_path$" + description = "Insert the path to storcli (e.g. /usr/sbin/storcli)." + } + + vars.storcli_path = "/usr/sbin/storcli" +}