mirror of https://github.com/Icinga/icinga2.git
Fix mongodb CheckCommand
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de> fixes #10979
This commit is contained in:
parent
09cb793402
commit
da85c7a20e
1
AUTHORS
1
AUTHORS
|
@ -14,6 +14,7 @@ Carlos Cesario <carloscesario@gmail.com>
|
||||||
Christian Harke <ch.harke@gmail.com>
|
Christian Harke <ch.harke@gmail.com>
|
||||||
Christian Jonak <christian@jonak.org>
|
Christian Jonak <christian@jonak.org>
|
||||||
Christian Lehmann <christian_lehmann@gmx.de>
|
Christian Lehmann <christian_lehmann@gmx.de>
|
||||||
|
Claudio Kuenzler <ck@claudiokuenzler.com>
|
||||||
Claudio Künzler <ck@claudiokuenzler.com>
|
Claudio Künzler <ck@claudiokuenzler.com>
|
||||||
Daniil Yaroslavtsev <dyaroslavtsev@confyrm.com>
|
Daniil Yaroslavtsev <dyaroslavtsev@confyrm.com>
|
||||||
David Beck <techiscool@gmail.com>
|
David Beck <techiscool@gmail.com>
|
||||||
|
|
|
@ -1762,6 +1762,7 @@ mongodb_database | **Optional.** Specify the database to check
|
||||||
mongodb_alldatabases | **Optional.** Check all databases (action database_size)
|
mongodb_alldatabases | **Optional.** Check all databases (action database_size)
|
||||||
mongodb_ssl | **Optional.** Connect using SSL
|
mongodb_ssl | **Optional.** Connect using SSL
|
||||||
mongodb_replicaset | **Optional.** Connect to replicaset
|
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_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_collection | **Optional.** Specify the collection to check
|
||||||
mongodb_sampletime | **Optional.** Time used to sample number of pages faults
|
mongodb_sampletime | **Optional.** Time used to sample number of pages faults
|
||||||
|
|
|
@ -363,7 +363,8 @@ object CheckCommand "mongodb" {
|
||||||
description = "Connect using SSL"
|
description = "Connect using SSL"
|
||||||
}
|
}
|
||||||
"--replicaset" = {
|
"--replicaset" = {
|
||||||
set_if = "$mongodb_replicaset$"
|
value = "$mongodb_replicaset$"
|
||||||
|
set_if = "$mongodb_replcheck$"
|
||||||
description = "Connect to replicaset"
|
description = "Connect to replicaset"
|
||||||
}
|
}
|
||||||
"--all-databases" = {
|
"--all-databases" = {
|
||||||
|
|
Loading…
Reference in New Issue