From baac99bec4378c147e61e845177e1e2260b2fea4 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 13 Jun 2019 09:56:37 +0200 Subject: [PATCH] fix squid snmp mode --- apps/squid/snmp/mode/protocolstats.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/squid/snmp/mode/protocolstats.pm b/apps/squid/snmp/mode/protocolstats.pm index 6019459df..5a88020a2 100644 --- a/apps/squid/snmp/mode/protocolstats.pm +++ b/apps/squid/snmp/mode/protocolstats.pm @@ -44,16 +44,16 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'global_http', type => 0, , cb_prefix_output => 'prefix_http_output', skipped_code => { -10 => 1 } }, - { name => 'global_icp', type => 0, , cb_prefix_output => 'prefix_icp_output', skipped_code => { -10 => 1 } }, - { name => 'global', type => 0, , cb_prefix_output => 'prefix_server_output', skipped_code => { -10 => 1 } } + { name => 'global_http', type => 0, cb_prefix_output => 'prefix_http_output', skipped_code => { -10 => 1 } }, + { name => 'global_icp', type => 0, cb_prefix_output => 'prefix_icp_output', skipped_code => { -10 => 1 } }, + { name => 'global', type => 0, cb_prefix_output => 'prefix_server_output', skipped_code => { -10 => 1 } } ]; $self->{maps_counters}->{global_http} = [ { label => 'http-hits-rate', set => { key_values => [ { name => 'cacheProtoClientHttpRequests', diff => 1 }, { name => 'cacheHttpHits', diff => 1 } ], closure_custom_calc => $self->can('custom_data_calc'), - output_template => 'hits rate : %.2f %%', output_use => 'hits_prct', + output_template => 'hits rate : %.2f %%', output_use => 'hits_prct', threshold_use => 'hits_prct', perfdatas => [ { label => 'http_hits_rate', value => 'hits_prct', template => '%.2f', min => 0, max => 100, unit => '%' }, ],