ITL: Add more options to ldap CheckCommand

Adding the -W and -C (warning entries and critical entries) options

fixes #5139

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Niflou 2017-04-05 14:50:08 +02:00 committed by Michael Friedrich
parent 05d9b271ee
commit b37fd53773
2 changed files with 26 additions and 16 deletions

View File

@ -674,7 +674,7 @@ This can be ensured by enabling `ldap_starttls` or `ldap_ssl`.
Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
Name | Description
----------------|--------------
------------------------|--------------
ldap_address | **Optional.** Host name, IP Address, or unix socket (must be an absolute path). Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
ldap_port | **Optional.** Port number. Defaults to 389.
ldap_attr | **Optional.** LDAP attribute to search for (default: "(objectclass=*)"
@ -687,6 +687,8 @@ ldap_v2 | **Optional.** Use LDAP protocol version 2 (enabled by default)
ldap_v3 | **Optional.** Use LDAP protocol version 3 (disabled by default)
ldap_warning | **Optional.** Response time to result in warning status (seconds).
ldap_critical | **Optional.** Response time to result in critical status (seconds).
ldap_warning_entries | **Optional.** Number of found entries to result in warning status.
ldap_critical_entries | **Optional.** Number of found entries to result in critical status.
ldap_timeout | **Optional.** Seconds before connection times out (default: 10).
ldap_verbose | **Optional.** Show details for command-line debugging (disabled by default)

View File

@ -1867,6 +1867,14 @@ object CheckCommand "ldap" {
value = "$ldap_critical$"
description = "Response time to result in critical status (seconds)"
}
"-W" = {
value = "$ldap_warning_entries$"
description = "Number of found entries to result in warning status (optional)"
}
"-C" = {
value = "$ldap_critical_entries$"
description = "Number of found entries to result in critical status (optional)"
}
"-t" = {
value = "$ldap_timeout$"
description = "Seconds before connection times out (default: 10)"