From e7079f43ba4cc1ae0893d5e48f44a9d946bd1aac Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 15 Jun 2020 15:49:47 +0200 Subject: [PATCH] remove useless code --- apps/mq/activemq/jmx/mode/brokers.pm | 36 ++++++++++------------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/apps/mq/activemq/jmx/mode/brokers.pm b/apps/mq/activemq/jmx/mode/brokers.pm index 714209643..78e903370 100644 --- a/apps/mq/activemq/jmx/mode/brokers.pm +++ b/apps/mq/activemq/jmx/mode/brokers.pm @@ -44,7 +44,7 @@ sub set_counters { key_values => [ { name => 'StorePercentUsage' }, { name => 'display' } ], output_template => 'store usage: %.2f %%', perfdatas => [ - { value => 'StorePercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } ] } }, @@ -52,7 +52,7 @@ sub set_counters { key_values => [ { name => 'TempPercentUsage' }, { name => 'display' } ], output_template => 'temporary usage: %.2f %%', perfdatas => [ - { value => 'TempPercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } ] } }, @@ -60,7 +60,7 @@ sub set_counters { key_values => [ { name => 'MemoryPercentUsage' }, { name => 'display' } ], output_template => 'memory usage: %.2f %%', perfdatas => [ - { value => 'MemoryPercentUsage', template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } ] } } @@ -72,8 +72,7 @@ sub set_counters { key_values => [ { name => 'AverageEnqueueTime' }, { name => 'display' } ], output_template => 'average time messages remained enqueued: %.3f ms', perfdatas => [ - { value => 'AverageEnqueueTime', - template => '%.3f', unit => 'ms', min => 0, label_extra_instance => 1 } + { template => '%.3f', unit => 'ms', min => 0, label_extra_instance => 1 } ] } }, @@ -81,8 +80,7 @@ sub set_counters { key_values => [ { name => 'ConsumerCount' }, { name => 'display' } ], output_template => 'consumers connected: %s', perfdatas => [ - { value => 'ConsumerCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -90,8 +88,7 @@ sub set_counters { key_values => [ { name => 'ProducerCount' }, { name => 'display' } ], output_template => 'producers connected: %s', perfdatas => [ - { value => 'ProducerCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -99,8 +96,7 @@ sub set_counters { key_values => [ { name => 'MemoryPercentUsage' }, { name => 'display' } ], output_template => 'memory usage: %.2f %%', perfdatas => [ - { value => 'MemoryPercentUsage', - template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } ] } }, @@ -108,8 +104,7 @@ sub set_counters { key_values => [ { name => 'QueueSize' }, { name => 'display' } ], output_template => 'queue size: %s', perfdatas => [ - { value => 'QueueSize', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -117,8 +112,7 @@ sub set_counters { key_values => [ { name => 'EnqueueCount', diff => 1 }, { name => 'display' } ], output_template => 'messages enqueued: %s', perfdatas => [ - { value => 'EnqueueCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -126,8 +120,7 @@ sub set_counters { key_values => [ { name => 'DequeueCount', diff => 1 }, { name => 'display' } ], output_template => 'messages dequeued: %s', perfdatas => [ - { value => 'DequeueCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -135,8 +128,7 @@ sub set_counters { key_values => [ { name => 'ExpiredCount', diff => 1 }, { name => 'display' } ], output_template => 'messages expired: %s', perfdatas => [ - { value => 'ExpiredCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -144,8 +136,7 @@ sub set_counters { key_values => [ { name => 'InFlightCount', diff => 1 }, { name => 'display' } ], output_template => 'messages in-flighted: %s', perfdatas => [ - { value => 'InFlightCount', - template => '%s', min => 0, label_extra_instance => 1 } + { template => '%s', min => 0, label_extra_instance => 1 } ] } }, @@ -154,8 +145,7 @@ sub set_counters { output_template => 'average messages size: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'AverageMessageSize', - template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } + { template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } ] } }