Revert 8342fc6820
This commit is contained in:
parent
6d0c24a7ce
commit
f278c61e03
|
@ -49,7 +49,7 @@ sub connect {
|
||||||
my $content;
|
my $content;
|
||||||
|
|
||||||
if (defined $self->{option_results}->{credentials}) {
|
if (defined $self->{option_results}->{credentials}) {
|
||||||
$ua->credentials($self->{option_results}->{hostname}.':'.$self->{option_results}->{port},$self->{option_results}->{realm},$self->{option_results}->{username},$self->{option_results}->{password});
|
$ua->credentials($self->{option_results}->{hostname}.':'.$self->{option_results}->{port},$self->{option_results}->{username},$self->{option_results}->{password});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($self->{option_results}->{proto} eq "https") {
|
if ($self->{option_results}->{proto} eq "https") {
|
||||||
|
|
|
@ -56,7 +56,6 @@ sub new {
|
||||||
"credentials" => { name => 'credentials' },
|
"credentials" => { name => 'credentials' },
|
||||||
"username:s" => { name => 'username' },
|
"username:s" => { name => 'username' },
|
||||||
"password:s" => { name => 'password' },
|
"password:s" => { name => 'password' },
|
||||||
"realm:s" => { name => 'realm', default => 'Authentification' },
|
|
||||||
"proxyurl:s" => { name => 'proxyurl' },
|
"proxyurl:s" => { name => 'proxyurl' },
|
||||||
"warning:s" => { name => 'warning' },
|
"warning:s" => { name => 'warning' },
|
||||||
"critical:s" => { name => 'critical' },
|
"critical:s" => { name => 'critical' },
|
||||||
|
@ -210,9 +209,7 @@ Specify username for basic authentification (Mandatory if --credentials is speci
|
||||||
|
|
||||||
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
||||||
|
|
||||||
=item B<--realm>
|
=item B<--password>
|
||||||
|
|
||||||
Credentials Realm (Default: 'Authentification')
|
|
||||||
|
|
||||||
=item B<--timeout>
|
=item B<--timeout>
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,6 @@ sub new {
|
||||||
"credentials" => { name => 'credentials' },
|
"credentials" => { name => 'credentials' },
|
||||||
"username:s" => { name => 'username' },
|
"username:s" => { name => 'username' },
|
||||||
"password:s" => { name => 'password' },
|
"password:s" => { name => 'password' },
|
||||||
"realm:s" => { name => 'realm', default => 'Authentification' },
|
|
||||||
"proxyurl:s" => { name => 'proxyurl' },
|
"proxyurl:s" => { name => 'proxyurl' },
|
||||||
"warning:s" => { name => 'warning' },
|
"warning:s" => { name => 'warning' },
|
||||||
"critical:s" => { name => 'critical' },
|
"critical:s" => { name => 'critical' },
|
||||||
|
@ -176,10 +175,6 @@ Specify username for basic authentification (Mandatory if --credentials is speci
|
||||||
|
|
||||||
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
||||||
|
|
||||||
=item B<--realm>
|
|
||||||
|
|
||||||
Credentials Realm (Default: 'Authentification')
|
|
||||||
|
|
||||||
=item B<--proxyurl>
|
=item B<--proxyurl>
|
||||||
|
|
||||||
Proxy URL if any
|
Proxy URL if any
|
||||||
|
|
|
@ -56,7 +56,6 @@ sub new {
|
||||||
"credentials" => { name => 'credentials' },
|
"credentials" => { name => 'credentials' },
|
||||||
"username:s" => { name => 'username' },
|
"username:s" => { name => 'username' },
|
||||||
"password:s" => { name => 'password' },
|
"password:s" => { name => 'password' },
|
||||||
"realm:s" => { name => 'realm', default => 'Authentification' },
|
|
||||||
"proxyurl:s" => { name => 'proxyurl' },
|
"proxyurl:s" => { name => 'proxyurl' },
|
||||||
"warning:s" => { name => 'warning' },
|
"warning:s" => { name => 'warning' },
|
||||||
"critical:s" => { name => 'critical' },
|
"critical:s" => { name => 'critical' },
|
||||||
|
@ -203,10 +202,6 @@ Specify username for basic authentification (Mandatory if --credentials is speci
|
||||||
|
|
||||||
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
Specify password for basic authentification (Mandatory if --credentials is specidied)
|
||||||
|
|
||||||
=item B<--realm>
|
|
||||||
|
|
||||||
Credentials Realm (Default: 'Authentification')
|
|
||||||
|
|
||||||
=item B<--timeout>
|
=item B<--timeout>
|
||||||
|
|
||||||
Threshold for HTTP timeout
|
Threshold for HTTP timeout
|
||||||
|
|
Loading…
Reference in New Issue