From 070fb49046cc624a7732dcddc0368b30b6ef9e6a Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Fri, 6 Jun 2014 08:43:34 +0200 Subject: [PATCH] Force remote mode refs #5597 --- .../emc/recoverypoint/ssh/mode/monitoredparameters.pm | 2 +- .../storage/emc/recoverypoint/ssh/mode/systemstatus.pm | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm b/centreon-plugins/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm index b09b2cd71..c6dee4a6b 100644 --- a/centreon-plugins/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm +++ b/centreon-plugins/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm @@ -146,7 +146,7 @@ Check monitored paramaters by RecoveryPoint Appliance. =item B<--hostname> -Hostname to query (need --remote). +Hostname to query. =item B<--ssh-option> diff --git a/centreon-plugins/storage/emc/recoverypoint/ssh/mode/systemstatus.pm b/centreon-plugins/storage/emc/recoverypoint/ssh/mode/systemstatus.pm index 1ee54de52..e433c62ef 100644 --- a/centreon-plugins/storage/emc/recoverypoint/ssh/mode/systemstatus.pm +++ b/centreon-plugins/storage/emc/recoverypoint/ssh/mode/systemstatus.pm @@ -50,7 +50,6 @@ sub new { $options{options}->add_options(arguments => { "hostname:s" => { name => 'hostname' }, - "remote" => { name => 'remote' }, "ssh-option:s@" => { name => 'ssh_option' }, "ssh-path:s" => { name => 'ssh_path' }, "ssh-command:s" => { name => 'ssh_command', default => 'ssh' }, @@ -67,6 +66,11 @@ sub new { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); + + if (!defined($self->{option_results}->{hostname})) { + $self->{output}->add_option_msg(short_msg => "Need to specify hostname."); + $self->{output}->option_exit(); + } if (!defined($self->{option_results}->{command})) { $self->{output}->add_option_msg(short_msg => "Need to specify command option."); @@ -127,7 +131,7 @@ Check system status. =item B<--hostname> -Hostname to query (need --remote). +Hostname to query. =item B<--ssh-option>