Skip to content

Commit

Permalink
Add the Option to disable RetryWrites to CheckCommand of mongodb (Ici…
Browse files Browse the repository at this point in the history
…nga#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
  • Loading branch information
atwebm authored Jan 27, 2023
1 parent 2d860a0 commit 0bdcd08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_collection | **Optional.** Specify the collection to check.
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>

Expand Down
4 changes: 4 additions & 0 deletions itl/plugins-contrib.d/databases.conf
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ object CheckCommand "mongodb" {
value = "$mongodb_warning$"
description = "The warning threshold we want to set"
}
"--disable_retry_writes" = {
set_if = "$mongodb_disableretrywrites$"
description = "Disable Retry Writes"
}
}

vars.mongodb_host = {{
Expand Down

0 comments on commit 0bdcd08

Please sign in to comment.