mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
Force remote mode refs #5597
This commit is contained in:
parent
65a98f5668
commit
c29c921de0
@ -146,7 +146,7 @@ Check monitored paramaters by RecoveryPoint Appliance.
|
|||||||
|
|
||||||
=item B<--hostname>
|
=item B<--hostname>
|
||||||
|
|
||||||
Hostname to query (need --remote).
|
Hostname to query.
|
||||||
|
|
||||||
=item B<--ssh-option>
|
=item B<--ssh-option>
|
||||||
|
|
||||||
|
@ -50,7 +50,6 @@ sub new {
|
|||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments =>
|
||||||
{
|
{
|
||||||
"hostname:s" => { name => 'hostname' },
|
"hostname:s" => { name => 'hostname' },
|
||||||
"remote" => { name => 'remote' },
|
|
||||||
"ssh-option:s@" => { name => 'ssh_option' },
|
"ssh-option:s@" => { name => 'ssh_option' },
|
||||||
"ssh-path:s" => { name => 'ssh_path' },
|
"ssh-path:s" => { name => 'ssh_path' },
|
||||||
"ssh-command:s" => { name => 'ssh_command', default => 'ssh' },
|
"ssh-command:s" => { name => 'ssh_command', default => 'ssh' },
|
||||||
@ -67,6 +66,11 @@ sub new {
|
|||||||
sub check_options {
|
sub check_options {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
$self->SUPER::init(%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})) {
|
if (!defined($self->{option_results}->{command})) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Need to specify command option.");
|
$self->{output}->add_option_msg(short_msg => "Need to specify command option.");
|
||||||
@ -127,7 +131,7 @@ Check system status.
|
|||||||
|
|
||||||
=item B<--hostname>
|
=item B<--hostname>
|
||||||
|
|
||||||
Hostname to query (need --remote).
|
Hostname to query.
|
||||||
|
|
||||||
=item B<--ssh-option>
|
=item B<--ssh-option>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user