add ssl opt harmonization (#965)

- Closes https://github.com/centreon/centreon-plugins/issues/961
- enhance el7 perl ssl compatibility
- add proxy option where missing
This commit is contained in:
cgagnaire 2018-04-23 13:54:07 +02:00 committed by Simon Bomm
parent 7e8883d659
commit ef6ff257ec
56 changed files with 535 additions and 205 deletions

View File

@ -46,6 +46,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -134,16 +135,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--header> =item B<--header>
Set HTTP headers (Multiple option) Set HTTP headers (Multiple option)

View File

@ -51,6 +51,7 @@ sub new {
"warning-access:s" => { name => 'warning_access' }, "warning-access:s" => { name => 'warning_access' },
"critical-access:s" => { name => 'critical_access' }, "critical-access:s" => { name => 'critical_access' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
$self->{statefile_value} = centreon::plugins::statefile->new(%options); $self->{statefile_value} = centreon::plugins::statefile->new(%options);
@ -223,16 +224,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--header> =item B<--header>
Set HTTP headers (Multiple option) Set HTTP headers (Multiple option)

View File

@ -47,6 +47,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"unknown-status:s" => { name => 'unknown_status', default => '' }, "unknown-status:s" => { name => 'unknown_status', default => '' },
"warning-status:s" => { name => 'warning_status' }, "warning-status:s" => { name => 'warning_status' },
"critical-status:s" => { name => 'critical_status', default => '%{http_code} < 200 or %{http_code} >= 300' }, "critical-status:s" => { name => 'critical_status', default => '%{http_code} < 200 or %{http_code} >= 300' },
@ -126,11 +127,11 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--proxyurl> =item B<--proxyurl>
@ -140,6 +141,10 @@ Proxy URL if any
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--header> =item B<--header>
Set HTTP headers (Multiple option) Set HTTP headers (Multiple option)

View File

@ -206,6 +206,7 @@ sub new {
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"header:s@" => { name => 'header' }, "header:s@" => { name => 'header' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"units:s" => { name => 'units', default => '%' }, "units:s" => { name => 'units', default => '%' },
}); });
@ -347,16 +348,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--header> =item B<--header>
Set HTTP headers (Multiple option) Set HTTP headers (Multiple option)

View File

@ -46,6 +46,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -138,16 +139,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--header> =item B<--header>
Set HTTP headers (Multiple option) Set HTTP headers (Multiple option)

View File

@ -43,9 +43,11 @@ sub new {
"database:s" => { name => 'database' }, "database:s" => { name => 'database' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
}); });
$self->{statefile_value} = centreon::plugins::statefile->new(%options); $self->{statefile_value} = centreon::plugins::statefile->new(%options);
@ -196,9 +198,17 @@ Specify username for API authentification
Specify password for API authentification Specify password for API authentification
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 3) Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>

View File

@ -51,6 +51,7 @@ sub new {
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"uid:s" => { name => 'uid' }, "uid:s" => { name => 'uid' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"threshold-overload:s@" => { name => 'threshold_overload' }, "threshold-overload:s@" => { name => 'threshold_overload' },
}); });
@ -203,20 +204,24 @@ Specify https if needed (Default: 'https')
=item B<--urlpath> =item B<--urlpath>
Set path to get checkmyws information (Default: 'api/status') Set path to get checkmyws information (Default: '/api/status')
=item B<--proxyurl> =item B<--proxyurl>
Proxy URL if any Proxy URL if any
=item B<--uid>
ID for checkmyws API
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 5) Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--uid>
ID for checkmyws API
=item B<--threshold-overload> =item B<--threshold-overload>
Set to overload default threshold values (syntax: status,regexp) Set to overload default threshold values (syntax: status,regexp)

View File

@ -43,9 +43,11 @@ sub new {
"credentials" => { name => 'credentials' }, "credentials" => { name => 'credentials' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"owner:s" => { name => 'owner' }, "owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' }, "repository:s" => { name => 'repository' },
"timeout:s" => { name => 'timeout' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -153,6 +155,18 @@ Specify username
Specify password Specify password
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--owner> =item B<--owner>
Specify GitHub's owner Specify GitHub's owner
@ -161,10 +175,6 @@ Specify GitHub's owner
Specify GitHub's repository Specify GitHub's repository
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back =back
=cut =cut

View File

@ -41,12 +41,14 @@ sub new {
"credentials" => { name => 'credentials' }, "credentials" => { name => 'credentials' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"owner:s" => { name => 'owner' }, "owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' }, "repository:s" => { name => 'repository' },
"label:s" => { name => 'label', default => '' }, "label:s" => { name => 'label', default => '' },
"timeout:s" => { name => 'timeout' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -160,6 +162,18 @@ Specify username
Specify password Specify password
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Threshold warning. Threshold warning.
@ -180,10 +194,6 @@ Specify GitHub's repository
Specify label for issues Specify label for issues
=item B<--timeout>
Threshold for HTTP timeout (Default: 3)
=back =back
=cut =cut

View File

@ -40,12 +40,14 @@ sub new {
"proto:s" => { name => 'proto', default => 'https' }, "proto:s" => { name => 'proto', default => 'https' },
"credentials" => { name => 'credentials' }, "credentials" => { name => 'credentials' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"owner:s" => { name => 'owner' }, "owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' }, "repository:s" => { name => 'repository' },
"timeout:s" => { name => 'timeout' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -145,6 +147,18 @@ Specify username
Specify password Specify password
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Threshold warning. Threshold warning.
@ -161,10 +175,6 @@ Specify GitHub's owner
Specify GitHub's repository Specify GitHub's repository
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back =back
=cut =cut

View File

@ -43,6 +43,8 @@ sub new {
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"owner:s" => { name => 'owner' }, "owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' }, "repository:s" => { name => 'repository' },
}); });
@ -144,10 +146,18 @@ Specify username
Specify password Specify password
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 5) Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=cut =cut

View File

@ -51,6 +51,8 @@ sub new {
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"threshold-overload:s@" => { name => 'threshold_overload' }, "threshold-overload:s@" => { name => 'threshold_overload' },
}); });
@ -164,9 +166,17 @@ Specify username
Specify password Specify password
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 5 Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--threshold-overload> =item B<--threshold-overload>

View File

@ -40,14 +40,16 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path' }, "urlpath:s" => { name => 'url_path' },
"jobname:s" => { name => 'jobname' }, "timeout:s" => { name => 'timeout' },
"credentials" => { name => 'credentials' }, "credentials" => { name => 'credentials' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"jobname:s" => { name => 'jobname' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"checkstyle" => { name => 'checkstyle' }, "checkstyle" => { name => 'checkstyle' },
"timeout:s" => { name => 'timeout' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -157,7 +159,7 @@ Specify https if needed (Default: 'http')
Set path to get Jenkins information Set path to get Jenkins information
=item B <--credentials> =item B<--credentials>
Required to use username/password authentication method Required to use username/password authentication method
@ -169,6 +171,18 @@ Specify username for API authentification
Specify password for API authentification Specify password for API authentification
=item B<--proxyurl>
Proxy URL if any
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for tendency score Warning Threshold for tendency score
@ -181,10 +195,6 @@ Critical Threshold for tendency score
Add checkstyle's violation output and perfdata Add checkstyle's violation output and perfdata
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back =back
=cut =cut

View File

@ -42,9 +42,13 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' }, "urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"kayako-api-key:s" => { name => 'kayako_api_key' }, "kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' }, "kayako-secret-key:s" => { name => 'kayako_secret_key' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
} }
@ -116,9 +120,17 @@ Specify https if needed
Proxy URL if any Proxy URL if any
=item B<--kayako-api-url> =item B<--urlpath>
This is the URL you should dispatch all GET, POST, PUT & DELETE requests to. This is the URL you should dispatch all GET, POST, PUT & DELETE requests to (Default: '/api/index.php?')
=item B<--timeout>
Threshold for HTTP timeout.
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--kayako-api-key> =item B<--kayako-api-key>

View File

@ -42,9 +42,13 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' }, "urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"kayako-api-key:s" => { name => 'kayako_api_key' }, "kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' }, "kayako-secret-key:s" => { name => 'kayako_secret_key' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
} }
@ -116,9 +120,17 @@ Specify https if needed
Proxy URL if any Proxy URL if any
=item B<--kayako-api-url> =item B<--urlpath>
This is the URL you should dispatch all GET, POST, PUT & DELETE requests to. This is the URL you should dispatch all GET, POST, PUT & DELETE requests to (Default: '/api/index.php?')
=item B<--timeout>
Threshold for HTTP timeout.
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--kayako-api-key> =item B<--kayako-api-key>

View File

@ -40,6 +40,9 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' }, "urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"kayako-api-key:s" => { name => 'kayako_api_key' }, "kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' }, "kayako-secret-key:s" => { name => 'kayako_secret_key' },
}); });
@ -115,9 +118,17 @@ Specify https if needed
Proxy URL if any Proxy URL if any
=item B<--kayako-api-url> =item B<--urlpath>
This is the URL you should dispatch all GET, POST, PUT & DELETE requests to. This is the URL you should dispatch all GET, POST, PUT & DELETE requests to (Default: '/api/index.php?')
=item B<--timeout>
Threshold for HTTP timeout.
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--kayako-api-key> =item B<--kayako-api-key>

View File

@ -40,6 +40,9 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' }, "urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"kayako-api-key:s" => { name => 'kayako_api_key' }, "kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' }, "kayako-secret-key:s" => { name => 'kayako_secret_key' },
}); });
@ -115,9 +118,17 @@ Specify https if needed
Proxy URL if any Proxy URL if any
=item B<--kayako-api-url> =item B<--urlpath>
This is the URL you should dispatch all GET, POST, PUT & DELETE requests to. This is the URL you should dispatch all GET, POST, PUT & DELETE requests to (Default: '/api/index.php?')
=item B<--timeout>
Threshold for HTTP timeout.
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--kayako-api-key> =item B<--kayako-api-key>

View File

@ -51,6 +51,9 @@ sub new {
"port:s" => { name => 'port' }, "port:s" => { name => 'port' },
"proto:s" => { name => 'proto' }, "proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' }, "urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"kayako-api-key:s" => { name => 'kayako_api_key' }, "kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' }, "kayako-secret-key:s" => { name => 'kayako_secret_key' },
"reload-cache-time:s" => { name => 'reload_cache_time', default => 180 }, "reload-cache-time:s" => { name => 'reload_cache_time', default => 180 },
@ -340,9 +343,17 @@ Specify https if needed
Proxy URL if any Proxy URL if any
=item B<--kayako-api-url> =item B<--urlpath>
This is the URL you should dispatch all GET, POST, PUT & DELETE requests to. (required) This is the URL you should dispatch all GET, POST, PUT & DELETE requests to (Default: '/api/index.php?')
=item B<--timeout>
Threshold for HTTP timeout.
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--kayako-api-key> =item B<--kayako-api-key>

View File

@ -41,13 +41,14 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"proto:s@" => { name => 'proto' }, "proto:s@" => { name => 'proto' },
"port:s@" => { name => 'port', }, "port:s@" => { name => 'port' },
"username:s@" => { name => 'username', }, "username:s@" => { name => 'username' },
"password:s@" => { name => 'password', }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -175,6 +176,10 @@ Proxy URL if any.
Set HTTP timeout in seconds (Default: '10'). Set HTTP timeout in seconds (Default: '10').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -50,6 +50,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
foreach (@{$maps}) { foreach (@{$maps}) {
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
@ -143,16 +144,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*> =item B<--warning-*>
Warning Threshold. Can be: 'active', 'waiting', 'writing', 'reading'. Warning Threshold. Can be: 'active', 'waiting', 'writing', 'reading'.

View File

@ -50,6 +50,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
foreach (@{$maps}) { foreach (@{$maps}) {
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
@ -191,16 +192,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*> =item B<--warning-*>
Warning Threshold. Can be: 'accepts', 'handled', 'requests'. Warning Threshold. Can be: 'accepts', 'handled', 'requests'.

View File

@ -46,6 +46,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"unknown-status:s" => { name => 'unknown_status', default => '' }, "unknown-status:s" => { name => 'unknown_status', default => '' },
"warning-status:s" => { name => 'warning_status' }, "warning-status:s" => { name => 'warning_status' },
"critical-status:s" => { name => 'critical_status', default => '%{http_code} < 200 or %{http_code} >= 300' }, "critical-status:s" => { name => 'critical_status', default => '%{http_code} < 200 or %{http_code} >= 300' },
@ -124,11 +125,11 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--proxyurl> =item B<--proxyurl>
@ -138,6 +139,10 @@ Proxy URL if any
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--unknown-status> =item B<--unknown-status>
Threshold warning for http response code Threshold warning for http response code

View File

@ -197,11 +197,11 @@ Specify this option if you access webpage over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--legacy-password> =item B<--legacy-password>

View File

@ -211,6 +211,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 30 }, "timeout:s" => { name => 'timeout', default => 30 },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -278,16 +279,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 30) Threshold for HTTP timeout (Default: 30)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*> =item B<--warning-*>
Threshold warning. Threshold warning.

View File

@ -107,6 +107,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 30 }, "timeout:s" => { name => 'timeout', default => 30 },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -175,16 +176,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout (Default: 30) Threshold for HTTP timeout (Default: 30)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*> =item B<--warning-*>
Threshold warning. Threshold warning.

View File

@ -151,6 +151,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 5 }, "timeout:s" => { name => 'timeout', default => 5 },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -228,6 +229,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci
Threshold for HTTP timeout (Default: 5) Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*> =item B<--warning-*>
Threshold warning. Threshold warning.

View File

@ -51,6 +51,7 @@ sub new {
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl:s@" => { name => 'ssl' }, "ssl:s@" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -232,9 +233,9 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl> =item B<--ssl-opt>
SSL version (Default: tlsv1) Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' }, "urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"name:s" => { name => 'name' }, "name:s" => { name => 'name' },
"regexp" => { name => 'use_regexp' }, "regexp" => { name => 'use_regexp' },
@ -167,16 +168,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list') Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' }, "urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"filter-name:s" => { name => 'filter_name', }, "filter-name:s" => { name => 'filter_name', },
"filter-state:s" => { name => 'filter_state', }, "filter-state:s" => { name => 'filter_state', },
@ -150,16 +151,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--url-path> =item B<--url-path>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list') Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -42,6 +42,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' }, "urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
@ -202,16 +203,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true') Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -45,6 +45,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' }, "urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"name:s" => { name => 'name' }, "name:s" => { name => 'name' },
"regexp" => { name => 'use_regexp' }, "regexp" => { name => 'use_regexp' },
@ -344,16 +345,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true') Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' }, "urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
@ -170,16 +171,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list') Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -43,6 +43,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' }, "urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
@ -238,16 +239,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true') Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -148,6 +148,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' }, "urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"filter-name:s" => { name => 'filter_name' }, "filter-name:s" => { name => 'filter_name' },
"speed-in:s" => { name => 'speed_in' }, "speed-in:s" => { name => 'speed_in' },
@ -297,16 +298,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--urlpath> =item B<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true') Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -49,6 +49,7 @@ sub new {
"password:s@" => { name => 'password' }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -200,6 +201,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -49,6 +49,7 @@ sub new {
"password:s@" => { name => 'password' }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -242,6 +243,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -54,6 +54,7 @@ sub new {
"proxypac:s" => { name => 'proxypac' }, "proxypac:s" => { name => 'proxypac' },
"timeout:s" => { name => 'timeout', default => 10 }, "timeout:s" => { name => 'timeout', default => 10 },
"ssl:s" => { name => 'ssl' }, "ssl:s" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"cert-file:s" => { name => 'cert_file' }, "cert-file:s" => { name => 'cert_file' },
"key-file:s" => { name => 'key_file' }, "key-file:s" => { name => 'key_file' },
"cacert-file:s" => { name => 'cacert_file' }, "cacert-file:s" => { name => 'cacert_file' },
@ -412,9 +413,9 @@ Proxy pac file (can be an url or local file)
Threshold for HTTP timeout (Default: 10) Threshold for HTTP timeout (Default: 10)
=item B<--ssl> =item B<--ssl-opt>
Specify SSL version (example : 'sslv3', 'tlsv1'...) Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--cert-file> =item B<--cert-file>

View File

@ -48,12 +48,13 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"ovh-type:s@" => { name => 'ovh_type', }, "ovh-type:s@" => { name => 'ovh_type' },
"ovh-application-key:s@" => { name => 'ovh_application_key', }, "ovh-application-key:s@" => { name => 'ovh_application_key' },
"ovh-application-secret:s@" => { name => 'ovh_application_secret', }, "ovh-application-secret:s@" => { name => 'ovh_application_secret' },
"ovh-consumer-key:s@" => { name => 'ovh_consumer_key', }, "ovh-consumer-key:s@" => { name => 'ovh_consumer_key' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -250,6 +251,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -46,6 +46,7 @@ sub new {
"critical" => { name => 'critical' }, "critical" => { name => 'critical' },
"closed" => { name => 'closed' }, "closed" => { name => 'closed' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{status} = { closed => 'ok', opened => 'ok' }; $self->{status} = { closed => 'ok', opened => 'ok' };
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning if door is opened (can set --close for closed door) Warning if door is opened (can set --close for closed door)

View File

@ -46,6 +46,7 @@ sub new {
"critical" => { name => 'critical' }, "critical" => { name => 'critical' },
"dry" => { name => 'dry' }, "dry" => { name => 'dry' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{status} = { dry => 'ok', wet => 'ok' }; $self->{status} = { dry => 'ok', wet => 'ok' };
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning if flood sensor is wet (can set --dry for dry sensor) Warning if flood sensor is wet (can set --dry for dry sensor)

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for Humidity Warning Threshold for Humidity

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for Illumination Warning Threshold for Illumination

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for Temperature Warning Threshold for Temperature

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for Thermistor Temperature Warning Threshold for Thermistor Temperature

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' }, "warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' }, "critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self; return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specified)
=item B<--password> =item B<--password>
Specify password for basic authentification (Mandatory if --credentials is specidied) Specify password for basic authentification (Mandatory if --credentials is specified)
=item B<--timeout> =item B<--timeout>
Threshold for HTTP timeout Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning> =item B<--warning>
Warning Threshold for Voltage Warning Threshold for Voltage

View File

@ -50,6 +50,7 @@ sub new {
"password:s@" => { name => 'password' }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -239,6 +240,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -49,6 +49,7 @@ sub new {
"freebox-api-version:s@" => { name => 'freebox_api_version', }, "freebox-api-version:s@" => { name => 'freebox_api_version', },
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"resolution:s@" => { name => 'resolution' }, "resolution:s@" => { name => 'resolution' },
}); });
} }
@ -293,6 +294,10 @@ Proxy URL if any.
Set HTTP timeout in seconds (Default: '10'). Set HTTP timeout in seconds (Default: '10').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--resolution> =item B<--resolution>
Selected data performance resolution in seconds (Default: '300'). Selected data performance resolution in seconds (Default: '300').

View File

@ -42,6 +42,8 @@ sub new {
"proxypac:s" => { name => 'proxypac' }, "proxypac:s" => { name => 'proxypac' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"phonenumber:s" => { name => 'phonenumber' }, "phonenumber:s" => { name => 'phonenumber' },
"message:s" => { name => 'message' }, "message:s" => { name => 'message' },
"sender:s" => { name => 'sender', default => 'API_HIGHSMS' }, "sender:s" => { name => 'sender', default => 'API_HIGHSMS' },
@ -147,6 +149,14 @@ Specify username for API authentification.
Specify password for API authentification. Specify password for API authentification.
=item B<--timeout>
Threshold for HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--phonenumber> =item B<--phonenumber>
Specify phone number. Specify phone number.

View File

@ -64,7 +64,6 @@ sub new {
"link-url:s" => { name => 'link_url' }, "link-url:s" => { name => 'link_url' },
"centreon-url:s" => { name => 'centreon_url' }, "centreon-url:s" => { name => 'centreon_url' },
"centreon-token:s" => { name => 'centreon_token' }, "centreon-token:s" => { name => 'centreon_token' },
"credentials" => { name => 'credentials' }, "credentials" => { name => 'credentials' },
"ntlm" => { name => 'ntlm' }, "ntlm" => { name => 'ntlm' },
"username:s" => { name => 'username' }, "username:s" => { name => 'username' },
@ -72,6 +71,7 @@ sub new {
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"proxypac:s" => { name => 'proxypac' }, "proxypac:s" => { name => 'proxypac' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
$self->{http} = centreon::plugins::http->new(output => $self->{output}); $self->{http} = centreon::plugins::http->new(output => $self->{output});
$self->{payload_attachment} = { fields => [] }; $self->{payload_attachment} = { fields => [] };
@ -328,10 +328,6 @@ Proxy pac file (can be an url or local file)
Specify this option if you access webpage over basic authentification Specify this option if you access webpage over basic authentification
=item B<--ntlm>
Specify this option if you access webpage over ntlm authentification (Use with --credentials option)
=item B<--username> =item B<--username>
Specify username for basic authentification (Mandatory if --credentials is specidied) Specify username for basic authentification (Mandatory if --credentials is specidied)
@ -344,6 +340,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci
Threshold for HTTP timeout (Default: 5) Threshold for HTTP timeout (Default: 5)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=cut =cut

View File

@ -46,11 +46,12 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"vplex-username:s@" => { name => 'vplex_username', }, "vplex-username:s@" => { name => 'vplex_username' },
"vplex-password:s@" => { name => 'vplex_password', }, "vplex-password:s@" => { name => 'vplex_password' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -220,6 +221,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -43,11 +43,12 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"xtremio-username:s@" => { name => 'xtremio_username', }, "xtremio-username:s@" => { name => 'xtremio_username' },
"xtremio-password:s@" => { name => 'xtremio_password', }, "xtremio-password:s@" => { name => 'xtremio_password' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"reload-cache-time:s" => { name => 'reload_cache_time' }, "reload-cache-time:s" => { name => 'reload_cache_time' },
}); });
} }
@ -284,6 +285,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--reload-cache-time> =item B<--reload-cache-time>
Time in seconds before reloading cache file (default: 180). Time in seconds before reloading cache file (default: 180).

View File

@ -47,14 +47,15 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"port:s@" => { name => 'port', }, "port:s@" => { name => 'port' },
"proto:s@" => { name => 'proto', }, "proto:s@" => { name => 'proto' },
"urlpath:s@" => { name => 'url_path', }, "urlpath:s@" => { name => 'url_path' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"username:s@" => { name => 'username', }, "username:s@" => { name => 'username' },
"password:s@" => { name => 'password', }, "password:s@" => { name => 'password' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'P2000 OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'P2000 OPTIONS', once => 1);
@ -308,6 +309,10 @@ Password to connect.
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -42,11 +42,12 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"username:s@" => { name => 'username', }, "username:s@" => { name => 'username' },
"password:s@" => { name => 'password', }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -177,6 +178,10 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back
=head1 DESCRIPTION =head1 DESCRIPTION

View File

@ -42,12 +42,13 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"hostname:s@" => { name => 'hostname', }, "hostname:s@" => { name => 'hostname' },
"username:s@" => { name => 'username', }, "username:s@" => { name => 'username' },
"password:s@" => { name => 'password', }, "password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl', }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout', }, "timeout:s@" => { name => 'timeout' },
"resolution:s@" => { name => 'resolution', }, "ssl-opt:s@" => { name => 'ssl_opt' },
"resolution:s@" => { name => 'resolution' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -186,6 +187,10 @@ Proxy URL if any.
Set HTTP timeout in seconds (Default: '10'). Set HTTP timeout in seconds (Default: '10').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--resolution> =item B<--resolution>
Selected data performance resolution (Default: '5m'). Selected data performance resolution (Default: '5m').

View File

@ -52,6 +52,7 @@ sub new {
"proxyurl:s@" => { name => 'proxyurl' }, "proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' }, "timeout:s@" => { name => 'timeout' },
"ssl:s@" => { name => 'ssl' }, "ssl:s@" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -250,9 +251,9 @@ Proxy URL if any
Set HTTP timeout Set HTTP timeout
=item B<--ssl> =item B<--ssl-opt>
SSL version (Default: tlsv1) Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back =back

View File

@ -47,6 +47,7 @@ sub new {
"password:s" => { name => 'password' }, "password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' }, "proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' }, "timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"api-path:s" => { name => 'api_path' }, "api-path:s" => { name => 'api_path' },
}); });
} }
@ -269,6 +270,10 @@ Proxy URL if any.
Set HTTP timeout in seconds (Default: '10'). Set HTTP timeout in seconds (Default: '10').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--api-path> =item B<--api-path>
API base url path (Default: '/api/1.11'). API base url path (Default: '/api/1.11').