enhance indent
This commit is contained in:
parent
c31223be41
commit
18f92d93f6
|
@ -34,8 +34,8 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
"centreon-config:s" => { name => 'centreon_config', default => '/etc/centreon/centreon-config.pm' },
|
'centreon-config:s' => { name => 'centreon_config', default => '/etc/centreon/centreon-config.pm' },
|
||||||
"bam-id:s" => { name => 'bam_id', },
|
'bam-id:s' => { name => 'bam_id', },
|
||||||
});
|
});
|
||||||
$self->{options} = $options{options};
|
$self->{options} = $options{options};
|
||||||
|
|
||||||
|
@ -75,8 +75,10 @@ sub run {
|
||||||
$self->{perfdata}->threshold_validate(label => 'critical', value => $level_c . ':');
|
$self->{perfdata}->threshold_validate(label => 'critical', value => $level_c . ':');
|
||||||
|
|
||||||
my $exit = $self->{perfdata}->threshold_check(value => $current_level, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
my $exit = $self->{perfdata}->threshold_check(value => $current_level, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||||
$self->{output}->output_add(severity => $exit,
|
$self->{output}->output_add(
|
||||||
short_msg => sprintf('BA : %s - current_level = %s%%', $name, $current_level));
|
severity => $exit,
|
||||||
|
short_msg => sprintf('BA : %s - current_level = %s%%', $name, $current_level)
|
||||||
|
);
|
||||||
$self->{output}->perfdata_add(
|
$self->{output}->perfdata_add(
|
||||||
label => 'BA_Level',
|
label => 'BA_Level',
|
||||||
unit => '%',
|
unit => '%',
|
||||||
|
|
Loading…
Reference in New Issue