From 48e349cae71775322cb815e4179b9beab313700f Mon Sep 17 00:00:00 2001 From: pkriko <32265250+pkriko@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:12:02 +0200 Subject: [PATCH 1/3] (fix): add 'vm-heap-usage-bytes' in the help. --- database/elasticsearch/restapi/mode/nodestatistics.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/elasticsearch/restapi/mode/nodestatistics.pm b/database/elasticsearch/restapi/mode/nodestatistics.pm index f040bf4b0..ddeb99f9c 100644 --- a/database/elasticsearch/restapi/mode/nodestatistics.pm +++ b/database/elasticsearch/restapi/mode/nodestatistics.pm @@ -162,13 +162,13 @@ Example: --filter-counters='heap' Threshold warning. Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size'. +'documents-total', 'data-size', 'vm-heap-usage-bytes'. =item B<--critical-*> Threshold critical. Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size'. +'documents-total', 'data-size', 'vm-heap-usage-bytes'. =back From 4f65f1aae319906072495d2081dace03c5066196 Mon Sep 17 00:00:00 2001 From: pkriko <32265250+pkriko@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:39:34 +0200 Subject: [PATCH 2/3] Update nodestatistics.pm --- database/elasticsearch/restapi/mode/nodestatistics.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/elasticsearch/restapi/mode/nodestatistics.pm b/database/elasticsearch/restapi/mode/nodestatistics.pm index ddeb99f9c..018527687 100644 --- a/database/elasticsearch/restapi/mode/nodestatistics.pm +++ b/database/elasticsearch/restapi/mode/nodestatistics.pm @@ -162,13 +162,13 @@ Example: --filter-counters='heap' Threshold warning. Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size', 'vm-heap-usage-bytes'. +'documents-total', 'data-size', 'jvm-heap-usage-bytes'. =item B<--critical-*> Threshold critical. Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size', 'vm-heap-usage-bytes'. +'documents-total', 'data-size', 'jvm-heap-usage-bytes'. =back From a329839fac936584ceeb92985e5ca79f23dee436 Mon Sep 17 00:00:00 2001 From: Thibault S <48209914+thibaults-centreon@users.noreply.github.com> Date: Wed, 19 Aug 2020 09:47:31 +0200 Subject: [PATCH 3/3] fix(mode): Elastic Nodes help cleanup --- database/elasticsearch/restapi/mode/nodestatistics.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/elasticsearch/restapi/mode/nodestatistics.pm b/database/elasticsearch/restapi/mode/nodestatistics.pm index 018527687..482c79d47 100644 --- a/database/elasticsearch/restapi/mode/nodestatistics.pm +++ b/database/elasticsearch/restapi/mode/nodestatistics.pm @@ -161,14 +161,14 @@ Example: --filter-counters='heap' =item B<--warning-*> Threshold warning. -Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size', 'jvm-heap-usage-bytes'. +Can be: 'data-size', 'disk-free', 'documents-total', +'jvm-heap-usage' (in %), 'jvm-heap-usage-bytes'. =item B<--critical-*> Threshold critical. -Can be: 'jvm-heap-usage', 'disk-free', -'documents-total', 'data-size', 'jvm-heap-usage-bytes'. +Can be: 'data-size', 'disk-free', 'documents-total', +'jvm-heap-usage' (in %), 'jvm-heap-usage-bytes'. =back