]> granicus.if.org Git - icinga2/commitdiff
Fix mongodb CheckCommand
authorClaudio Kuenzler <ck@claudiokuenzler.com>
Mon, 18 Jan 2016 14:00:34 +0000 (15:00 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Mon, 18 Jan 2016 14:43:51 +0000 (15:43 +0100)
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
fixes #10979

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

diff --git a/AUTHORS b/AUTHORS
index a648d5382ca3b62a3a138ceaaca1065b7e22d697..74af17c6f1baf96178a814c5715f5b789f68908a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -14,6 +14,7 @@ Carlos Cesario <carloscesario@gmail.com>
 Christian Harke <ch.harke@gmail.com>
 Christian Jonak <christian@jonak.org>
 Christian Lehmann <christian_lehmann@gmx.de>
+Claudio Kuenzler <ck@claudiokuenzler.com>
 Claudio Künzler <ck@claudiokuenzler.com>
 Daniil Yaroslavtsev <dyaroslavtsev@confyrm.com>
 David Beck <techiscool@gmail.com>
index 919b4130990ae27aa477da32d0ee6a5bf64fd694..65060966a436953aff1426c371d96c3022ac10d4 100644 (file)
@@ -1762,6 +1762,7 @@ mongodb_database                 | **Optional.** Specify the database to check
 mongodb_alldatabases             | **Optional.** Check all databases (action database_size)
 mongodb_ssl                      | **Optional.** Connect using SSL
 mongodb_replicaset               | **Optional.** Connect to replicaset
+mongodb_replcheck                | **Optional.** If set to true, will enable the mongodb_replicaset value needed for "replica_primary" check
 mongodb_querytype                | **Optional.** The query type to check [query|insert|update|delete|getmore|command] from queries_per_second
 mongodb_collection               | **Optional.** Specify the collection to check
 mongodb_sampletime               | **Optional.** Time used to sample number of pages faults
index 6b265ec682e07545caec22189f8215ed27eb4c84..fc40093ca6f991abec4a0addcbfcf6030ed27576 100644 (file)
@@ -363,7 +363,8 @@ object CheckCommand "mongodb" {
                        description = "Connect using SSL"
                }
                "--replicaset" = {
-                       set_if = "$mongodb_replicaset$"
+                       value = "$mongodb_replicaset$"
+                       set_if = "$mongodb_replcheck$"
                        description = "Connect to replicaset"
                }
                "--all-databases" = {