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
0f93bfe3ed
commit
a19527f109
|
@ -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
|
||||
|
|
|
@ -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" = {
|
||||
|
|
Loading…
Reference in New Issue