mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
remove useless skip_global
This commit is contained in:
parent
0cc5d33995
commit
5a0d06ae9d
@ -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…
x
Reference in New Issue
Block a user