remove useless skip_global
This commit is contained in:
parent
4c308adc1a
commit
6ffa73031f
|
@ -44,7 +44,7 @@ sub set_counters {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{maps_counters_type} = [
|
$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 } },
|
{ 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 {
|
sub prefix_diskpath_output {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue