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 Gunnar Beutner
parent 0f93bfe3ed
commit a19527f109
2 changed files with 3 additions and 1 deletions

View File

@ -1663,6 +1663,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" = {