From b5334645fc09c0eed455840257b95200249e8866 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 18 Dec 2015 11:07:27 +0100 Subject: [PATCH] + Enhance f5 network bigip connections mode --- .../network/f5/bigip/mode/connections.pm | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/centreon-plugins/network/f5/bigip/mode/connections.pm b/centreon-plugins/network/f5/bigip/mode/connections.pm index ecd48b0cf..c83688b52 100644 --- a/centreon-plugins/network/f5/bigip/mode/connections.pm +++ b/centreon-plugins/network/f5/bigip/mode/connections.pm @@ -24,11 +24,11 @@ use base qw(centreon::plugins::mode); use strict; use warnings; +use centreon::plugins::values; my $maps_counters = { global => [ - { set => { - label => 'client', + { label => 'client', set => { key_values => [ { name => 'client' } ], output_template => 'Current client connections : %s', perfdatas => [ @@ -37,18 +37,16 @@ my $maps_counters = { ], } }, - { set => { - label => 'client-ssl', + { label => 'client-ssl', set => { key_values => [ { name => 'client_ssl' } ], output_template => 'Current client SSL connections : %s', perfdatas => [ - { label => 'ClientSSL', value => 'client_absolute', template => '%s', + { label => 'ClientSSL', value => 'client_ssl_absolute', template => '%s', min => 0, unit => 'con' }, ], } }, - { set => { - label => 'server', + { label => 'server', set => { key_values => [ { name => 'server' } ], output_template => 'Current server connections: %s', perfdatas => [ @@ -57,8 +55,7 @@ my $maps_counters = { ], } }, - { set => { - label => 'server-ssl', + { label => 'server-ssl', set => { key_values => [ { name => 'server_ssl' } ], output_template => 'Current server SSL connections : %s', perfdatas => [ @@ -218,5 +215,4 @@ Can be: 'client', 'server', 'client-ssl', 'server-ssl'. =back -=cut - +=cut \ No newline at end of file