From 6ffa73031febb89ee7751f46c2f1a51fa80d3fb8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 14 Nov 2019 17:09:44 +0100 Subject: [PATCH] remove useless skip_global --- snmp_standard/mode/diskusage.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/snmp_standard/mode/diskusage.pm b/snmp_standard/mode/diskusage.pm index fe25d6aff..ddb5ed5d7 100644 --- a/snmp_standard/mode/diskusage.pm +++ b/snmp_standard/mode/diskusage.pm @@ -44,7 +44,7 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'global', type => 0, cb_init => 'skip_global' }, + { name => 'global', type => 0 }, { name => 'diskpath', type => 1, cb_prefix_output => 'prefix_diskpath_output', message_multiple => 'All partitions are ok', skipped_code => { -10 => 1 } }, ]; @@ -99,12 +99,6 @@ sub set_counters { ]; } -sub skip_global { - my ($self, %options) = @_; - - scalar(keys %{$self->{diskpath}}) > 1 ? return(0) : return(1); -} - sub prefix_diskpath_output { my ($self, %options) = @_;