Add check commands kdc and rbl

fixes 

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
Lennart Betz 2016-06-21 21:54:41 +02:00 committed by Gunnar Beutner
parent e3f1c1ec6f
commit ba24f7b912
3 changed files with 96 additions and 1 deletions

View File

@ -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.

View File

@ -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
)

View File

@ -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
}