diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index a332ac7fb..3f8f03628 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'. +#### 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. + + +#### 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). + + ### 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 0a2ec392c..0ce1e66a6 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 000000000..b6d3fd44a --- /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 +}