Merge pull request #5954 from Icinga/feature/itl-mongodb-authdb

ITL: Add mongodb --authdb parameter support
This commit is contained in:
Michael Friedrich 2018-01-08 14:24:24 +01:00 committed by GitHub
commit 08e664f971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

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

View File

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