mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 17:15:11 +02:00
fix celerra (#2283)
This commit is contained in:
parent
cd9b7b1b76
commit
afdcf4b4ab
@ -67,7 +67,7 @@ sub set_system {
|
|||||||
sub cmd_execute {
|
sub cmd_execute {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my ($stdout, $exit_code) = $options{custom}->execute_command(
|
($self->{stdout}, my $exit_code) = $options{custom}->execute_command(
|
||||||
command => 'getreason',
|
command => 'getreason',
|
||||||
command_path => '/nas/sbin',
|
command_path => '/nas/sbin',
|
||||||
command_options => '2>&1',
|
command_options => '2>&1',
|
||||||
@ -75,7 +75,7 @@ sub cmd_execute {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($exit_code != 0 && $exit_code != 255) {
|
if ($exit_code != 0 && $exit_code != 255) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Command error: $stdout");
|
$self->{output}->add_option_msg(short_msg => "Command error: $self->{stdout}");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user