From a19527f109c1a6654abbb9c5d3ba4100b4c11a00 Mon Sep 17 00:00:00 2001 From: Claudio Kuenzler Date: Mon, 18 Jan 2016 15:00:34 +0100 Subject: [PATCH] Fix mongodb CheckCommand Signed-off-by: Jean Flach fixes #10979 --- doc/7-icinga-template-library.md | 1 + itl/plugins-contrib.d/databases.conf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 1071e0300..bff2b6502 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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 diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index 6b265ec68..fc40093ca 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -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" = { -- 2.40.0