]> granicus.if.org Git - icinga2/commitdiff
ITL: Add mongodb --authdb parameter support 5954/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 8 Jan 2018 13:14:04 +0000 (14:14 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 8 Jan 2018 13:14:04 +0000 (14:14 +0100)
fixes #5260

doc/10-icinga-template-library.md
itl/plugins-contrib.d/databases.conf

index 6536709f4c2e20ba60c8df9caf34706c02855fe1..2e81203851d933517d525a2383f65f08dbc1fc1f 100644 (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.
index 15e42dfe2d526b45298141a1dc79fb1321586964..8b4c2ffd268f9db9fd4814f0d5b4b33841e32e9c 100644 (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"