From: Michael Friedrich Date: Mon, 8 Jan 2018 13:14:04 +0000 (+0100) Subject: ITL: Add mongodb --authdb parameter support X-Git-Tag: v2.9.0~238^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F5954%2Fhead;p=icinga2 ITL: Add mongodb --authdb parameter support fixes #5260 --- diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 6536709f4..2e8120385 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2358,6 +2358,7 @@ mongodb_host | **Required.** Specifies the hostname or addre mongodb_port | **Required.** The port mongodb is running on. mongodb_user | **Optional.** The username you want to login as. mongodb_passwd | **Optional.** The password you want to use for that user. +mongodb_authdb | **Optional.** The database you want to authenticate against. mongodb_warning | **Optional.** The warning threshold we want to set. mongodb_critical | **Optional.** The critical threshold we want to set. mongodb_action | **Required.** The action you want to take. diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index 15e42dfe2..8b4c2ffd2 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -633,6 +633,10 @@ object CheckCommand "mongodb" { value = "$mongodb_passwd$" description = "The password you want to use for that user" } + "-a" = { + value = "$mongodb_authdb$" + description = "The database you want to authenticate against" + } "-A" = { value = "$mongodb_action$" description = "The action you want to take"