fix indent
This commit is contained in:
parent
7aa03dbb9e
commit
c7aeae5941
|
@ -33,7 +33,8 @@
|
|||
my $msg = sprintf("Status is '%s' [State: %s], Duration: %s, Percent complete: %s%%",
|
||||
$self->{result_values}->{status}, $self->{result_values}->{state},
|
||||
centreon::plugins::misc::change_seconds(value => $self->{result_values}->{duration}),
|
||||
$self->{result_values}->{percent_complete});
|
||||
$self->{result_values}->{percent_complete}
|
||||
);
|
||||
return $msg;
|
||||
}
|
||||
|
||||
|
@ -113,19 +114,18 @@
|
|||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments =>
|
||||
{
|
||||
"hostname:s" => { name => 'hostname' },
|
||||
"ssh-option:s@" => { name => 'ssh_option' },
|
||||
"ssh-path:s" => { name => 'ssh_path' },
|
||||
"ssh-command:s" => { name => 'ssh_command', default => 'ssh' },
|
||||
"timeout:s" => { name => 'timeout', default => 30 },
|
||||
"sudo" => { name => 'sudo' },
|
||||
"command:s" => { name => 'command', default => 'syscli' },
|
||||
"command-path:s" => { name => 'command_path' },
|
||||
"command-options:s" => { name => 'command_options', default => '--list dedupvtl' },
|
||||
"warning-status:s" => { name => 'warning_status', default => '%{state} !~ /Enabled/i' },
|
||||
"critical-status:s" => { name => 'critical_status', default => '' },
|
||||
$options{options}->add_options(arguments => {
|
||||
'hostname:s' => { name => 'hostname' },
|
||||
'ssh-option:s@' => { name => 'ssh_option' },
|
||||
'ssh-path:s' => { name => 'ssh_path' },
|
||||
'ssh-command:s' => { name => 'ssh_command', default => 'ssh' },
|
||||
'timeout:s' => { name => 'timeout', default => 30 },
|
||||
'sudo' => { name => 'sudo' },
|
||||
'command:s' => { name => 'command', default => 'syscli' },
|
||||
'command-path:s' => { name => 'command_path' },
|
||||
'command-options:s' => { name => 'command_options', default => '--list dedupvtl' },
|
||||
'warning-status:s' => { name => 'warning_status', default => '%{state} !~ /Enabled/i' },
|
||||
'critical-status:s' => { name => 'critical_status', default => '' },
|
||||
});
|
||||
|
||||
return $self;
|
||||
|
@ -147,7 +147,8 @@
|
|||
|
||||
$self->{global} = {};
|
||||
|
||||
my ($stdout, $exit_code) = centreon::plugins::misc::execute(output => $self->{output},
|
||||
my ($stdout, $exit_code) = centreon::plugins::misc::execute(
|
||||
output => $self->{output},
|
||||
options => $self->{option_results},
|
||||
sudo => $self->{option_results}->{sudo},
|
||||
command => $self->{option_results}->{command},
|
||||
|
|
Loading…
Reference in New Issue