Fix mongodb CheckCommand

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>

fixes #10979
This commit is contained in:
Claudio Kuenzler 2016-01-18 15:00:34 +01:00 committed by Jean Flach
parent 09cb793402
commit da85c7a20e
3 changed files with 4 additions and 1 deletions

View File

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

View 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

View 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" = {