Add the Option to disable RetryWrites to CheckCommand of mongodb (#9539)

* Add the Option to disable RetryWrites to CheckCommand for newer check_mongodb.py

* Add documentation foor the Option to disable RetryWrites in the MongoDB-Check
This commit is contained in:
Markus Weber 2023-01-27 16:59:40 +01:00 committed by GitHub
parent 2d860a0f5e
commit 0bdcd08e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -2566,6 +2566,7 @@ mongodb_replcheck | **Optional.** If set to true, will enable the
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.
mongodb_disableretrywrites | **Optional.** If set to true, will disable Retry Writes, to allow counting the QPS.
#### elasticsearch <a id="plugin-contrib-command-elasticsearch"></a> #### elasticsearch <a id="plugin-contrib-command-elasticsearch"></a>

View File

@ -700,6 +700,10 @@ object CheckCommand "mongodb" {
value = "$mongodb_warning$" value = "$mongodb_warning$"
description = "The warning threshold we want to set" description = "The warning threshold we want to set"
} }
"--disable_retry_writes" = {
set_if = "$mongodb_disableretrywrites$"
description = "Disable Retry Writes"
}
} }
vars.mongodb_host = {{ vars.mongodb_host = {{