mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 14:44:43 +02:00
Update vplexapi.pm (#2279)
10 seconds timout is too low. I'm in a small environement and it doesn't work for half modes. 30 seconds works better
This commit is contained in:
parent
1273e69027
commit
8f0808acaa
@ -69,7 +69,7 @@ sub check_options {
|
|||||||
$self->{hostname} = (defined($self->{option_results}->{hostname})) ? shift(@{$self->{option_results}->{hostname}}) : undef;
|
$self->{hostname} = (defined($self->{option_results}->{hostname})) ? shift(@{$self->{option_results}->{hostname}}) : undef;
|
||||||
$self->{vplex_username} = (defined($self->{option_results}->{vplex_username})) ? shift(@{$self->{option_results}->{vplex_username}}) : '';
|
$self->{vplex_username} = (defined($self->{option_results}->{vplex_username})) ? shift(@{$self->{option_results}->{vplex_username}}) : '';
|
||||||
$self->{vplex_password} = (defined($self->{option_results}->{vplex_password})) ? shift(@{$self->{option_results}->{vplex_password}}) : '';
|
$self->{vplex_password} = (defined($self->{option_results}->{vplex_password})) ? shift(@{$self->{option_results}->{vplex_password}}) : '';
|
||||||
$self->{timeout} = (defined($self->{option_results}->{timeout})) ? shift(@{$self->{option_results}->{timeout}}) : 10;
|
$self->{timeout} = (defined($self->{option_results}->{timeout})) ? shift(@{$self->{option_results}->{timeout}}) : 30;
|
||||||
|
|
||||||
if (!defined($self->{hostname})) {
|
if (!defined($self->{hostname})) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Need to specify hostname option.");
|
$self->{output}->add_option_msg(short_msg => "Need to specify hostname option.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user