[icinga-checkins] icinga.org: icinga2/master: Add check commands kdc and rbl

git at icinga.org git at icinga.org
Wed Jun 22 09:21:29 CEST 2016


Module: icinga2
Branch: master
Commit: ba24f7b912e750c3dca12b5b5bfab917bef0dfe2
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=ba24f7b912e750c3dca12b5b5bfab917bef0dfe2

Author: Lennart Betz <lennart.betz at netways.de>
Date:   Tue Jun 21 21:54:41 2016 +0200

Add check commands kdc and rbl

fixes #12006

Signed-off-by: Gunnar Beutner <gunnar.beutner at netways.de>

---

 doc/7-icinga-template-library.md            |   29 ++++++++++++
 itl/plugins-contrib.d/CMakeLists.txt        |    2 +-
 itl/plugins-contrib.d/network-services.conf |   66 +++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 1 deletion(-)

diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md
index a332ac7..3f8f036 100644
--- a/doc/7-icinga-template-library.md
+++ b/doc/7-icinga-template-library.md
@@ -2243,6 +2243,35 @@ apache_status_warning	| **Optional.** Warning threshold (number of open slots, b
 apache_status_critical	| **Optional.** Critical threshold (number of open slots, busy workers and idle workers that will cause a CRITICAL) like ':10,25,:20'.
 
 
+#### <a id="plugins-contrib-kdc"></a> kdc
+
+Plugin for monitoring [kdc](https://exchange.nagios.org/directory/Plugins/Security/check_kdc/details).
+
+Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
+
+Name            | Description
+----------------|--------------------------------------------------------------------------
+kdc_address	| **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, `address6` otherwise.
+kdc_port	| **Optional** Port on which KDC runs (default 88).
+kdc_principal	| **Required** Principal name to authenticate as (including realm).
+kdc_keytab	| **Required** Keytab file containing principal's key.
+
+
+#### <a id="plugins-contrib-rbl"></a> rbl
+
+Plugin for monitoring [rbl](https://github.com/matteocorti/check_rbl)
+
+Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
+
+Name            | Description
+----------------|--------------------------------------------------------------------------
+rbl_hostname	| **Optional.** The address or name of the SMTP server to check. Defaults to "$address$" if the host's `address` attribute is set, `address6` otherwise.
+rbl_server	| **Required** List of RBL servers as an array.
+rbl_warning	| **Optional** Number of blacklisting servers for a warning.
+rbl_critical	| **Optional** Number of blacklisting servers for a critical.
+tbl_timeout	| **Optional** Seconds before plugin times out (default: 15).
+
+
 ### <a id="plugins-contrib-operating-system"></a> Operating System
 
 In this category you can find plugins for gathering information about your operating system or the system beneath like memory usage.
diff --git a/itl/plugins-contrib.d/CMakeLists.txt b/itl/plugins-contrib.d/CMakeLists.txt
index 0a2ec39..0ce1e66 100644
--- a/itl/plugins-contrib.d/CMakeLists.txt
+++ b/itl/plugins-contrib.d/CMakeLists.txt
@@ -16,6 +16,6 @@
 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 install(
-  FILES databases.conf icingacli.conf ipmi.conf network-components.conf operating-system.conf virtualization.conf vmware.conf web.conf hardware.conf
+  FILES databases.conf icingacli.conf ipmi.conf network-components.conf operating-system.conf virtualization.conf vmware.conf web.conf hardware.conf network-services.conf
   DESTINATION ${CMAKE_INSTALL_DATADIR}/icinga2/include/plugins-contrib.d
 )
diff --git a/itl/plugins-contrib.d/network-services.conf b/itl/plugins-contrib.d/network-services.conf
new file mode 100644
index 0000000..b6d3fd4
--- /dev/null
+++ b/itl/plugins-contrib.d/network-services.conf
@@ -0,0 +1,66 @@
+object CheckCommand "kdc" {
+	import "plugin-check-command"
+	import "ipv4-or-ipv6"
+
+	command = [ PluginContribDir + "/check_kdc" ]
+
+	arguments = {
+		"-H" = {
+			value = "$kdc_address$"
+			description = "Name or IP address of KDC to check."
+		}
+		"-P" = {
+			value = "$kdc_port$"
+			description = "Port on which KDC runs (default 88)."
+		}
+		"-p" = {
+			value = "$kdc_principal$"
+			description = "Principal name to authenticate as (including realm)."
+			required = true
+		}
+		"-k" = {
+			value = "$kdc_keytab$"
+			description = "Keytab file containing principal's key."
+			required = true
+		}
+	}
+
+	vars.kdc_address = "$check_address$"
+}
+
+object CheckCommand "rbl" {
+	import "plugin-check-command"
+	import "ipv4-or-ipv6"
+
+	command = [ PluginContribDir + "/check_rbl" ]
+
+	arguments = {
+		"-H" = {
+			value = "$rbl_hostname$"
+			description = "Name or IP address of SMTP server to check."
+		}
+		"-s" = {
+			value = "$rbl_server$"
+			description = "List of RBL servers as an array."
+			required = true
+			repeat_key = true
+		}
+		"-w" = {
+			value = "$rbl_warning$"
+			description = "Number of blacklisting servers for a warning."
+		}
+		"-c" = {
+			value = "$rbl_critical$"
+			description = "Number of blacklisting servers for a critical."
+		}
+		"-t" = {
+			vlaue = "$rbl_timeout$"
+			description = "Seconds before plugin times out (default: 15)."
+		}
+	}
+
+	vars.rbl_hostname = "$check_address$"
+	vars.rbl_timeout = 15
+	vars.rbl_warning = 1
+	vars.rbl_critical = 1
+}



More information about the icinga-checkins mailing list