From 9960842d3d203c2f4050a2016f4ba5f9d5209fe3 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 27 Jun 2023 18:23:21 -0600 Subject: [PATCH] minor --- check_graylog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_graylog.py b/check_graylog.py index 86dbdff..2415fa0 100755 --- a/check_graylog.py +++ b/check_graylog.py @@ -263,7 +263,7 @@ def main(): text_result = text_result + f' JVM memory usage: {int((perfdata["jvm_memory_used"]["value"] / metrics_data["jvm_memory_heap_max"]) * 100)}%' else: # show more data - text_result = text_result + f' JVM memory usage: {int((perfdata["jvm_memory_used"]["value"] / metrics_data["jvm_memory_heap_max"]) * 100)}%, throughput last 1 second: {human_readable_size(perfdata["throughput_input_1_sec_rate"]["value"])} in - {human_readable_size(perfdata["throughput_output_1_sec_rate"]["value"])} out, elastisearch_active_shards: {perfdata["elastisearch_active_shards"]["value"]}' + text_result = text_result + f' JVM memory usage: {int((perfdata["jvm_memory_used"]["value"] / metrics_data["jvm_memory_heap_max"]) * 100)}%, throughput last 1 second: {human_readable_size(perfdata["throughput_input_1_sec_rate"]["value"])} in - {human_readable_size(perfdata["throughput_output_1_sec_rate"]["value"])} out, Elastisearch active shards: {perfdata["elastisearch_active_shards"]["value"]}' if args.input: text_result = text_result + f' {input_name_clean} events/second for last minute: {perfdata[f"{input_name_clean}_incoming_messages_rate_per_sec_1min"]["value"]}, {input_name_clean}_connections: {perfdata[f"{input_name_clean}_connections"]["value"]}, {input_name_clean}_network_in_total: {human_readable_size(perfdata[f"{input_name_clean}_network_in_total"]["value"], decimal_places=0)}'