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 15e8bcb085
commit 9a291d3695
56 changed files with 535 additions and 205 deletions

View File

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

View File

@ -51,6 +51,7 @@ sub new {
"warning-access:s" => { name => 'warning_access' },
"critical-access:s" => { name => 'critical_access' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
$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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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>
Set HTTP headers (Multiple option)

View File

@ -47,6 +47,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"unknown-status:s" => { name => 'unknown_status', default => '' },
"warning-status:s" => { name => 'warning_status' },
"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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
@ -140,6 +141,10 @@ Proxy URL if any
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>
Set HTTP headers (Multiple option)

View File

@ -206,6 +206,7 @@ sub new {
"proxyurl:s" => { name => 'proxyurl' },
"header:s@" => { name => 'header' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"units:s" => { name => 'units', default => '%' },
});
@ -347,16 +348,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--header>
Set HTTP headers (Multiple option)

View File

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

View File

@ -43,9 +43,11 @@ sub new {
"database:s" => { name => 'database' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
});
$self->{statefile_value} = centreon::plugins::statefile->new(%options);
@ -196,9 +198,17 @@ Specify username for API authentification
Specify password for API authentification
=item B<--proxyurl>
Proxy URL if any
=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>

View File

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

View File

@ -43,9 +43,11 @@ sub new {
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' },
"timeout:s" => { name => 'timeout' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -153,6 +155,18 @@ Specify username
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>
Specify GitHub's owner
@ -161,10 +175,6 @@ Specify GitHub's owner
Specify GitHub's repository
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back
=cut

View File

@ -41,12 +41,14 @@ sub new {
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' },
"label:s" => { name => 'label', default => '' },
"timeout:s" => { name => 'timeout' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -160,6 +162,18 @@ Specify username
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>
Threshold warning.
@ -180,10 +194,6 @@ Specify GitHub's repository
Specify label for issues
=item B<--timeout>
Threshold for HTTP timeout (Default: 3)
=back
=cut

View File

@ -40,12 +40,14 @@ sub new {
"proto:s" => { name => 'proto', default => 'https' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"password:s" => { name => 'password' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' },
"timeout:s" => { name => 'timeout' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -145,6 +147,18 @@ Specify username
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>
Threshold warning.
@ -161,10 +175,6 @@ Specify GitHub's owner
Specify GitHub's repository
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back
=cut

View File

@ -43,6 +43,8 @@ sub new {
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"owner:s" => { name => 'owner' },
"repository:s" => { name => 'repository' },
});
@ -144,10 +146,18 @@ Specify username
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").
=back
=cut

View File

@ -43,15 +43,17 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname', default => 'status.github.com' },
"port:s" => { name => 'port', default => '443'},
"proto:s" => { name => 'proto', default => 'https' },
"urlpath:s" => { name => 'url_path', default => '/api/last-message.json' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"threshold-overload:s@" => { name => 'threshold_overload' },
"hostname:s" => { name => 'hostname', default => 'status.github.com' },
"port:s" => { name => 'port', default => '443'},
"proto:s" => { name => 'proto', default => 'https' },
"urlpath:s" => { name => 'url_path', default => '/api/last-message.json' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"threshold-overload:s@" => { name => 'threshold_overload' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -164,9 +166,17 @@ Specify username
Specify password
=item B<--proxyurl>
Proxy URL if any
=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>

View File

@ -40,14 +40,16 @@ sub new {
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path' },
"jobname:s" => { name => 'jobname' },
"timeout:s" => { name => 'timeout' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"jobname:s" => { name => 'jobname' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"checkstyle" => { name => 'checkstyle' },
"timeout:s" => { name => 'timeout' },
"checkstyle" => { name => 'checkstyle' },
});
$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
=item B <--credentials>
=item B<--credentials>
Required to use username/password authentication method
@ -169,6 +171,18 @@ Specify username 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>
Warning Threshold for tendency score
@ -181,10 +195,6 @@ Critical Threshold for tendency score
Add checkstyle's violation output and perfdata
=item B<--timeout>
Threshold for HTTP timeout (Default: 5)
=back
=cut

View File

@ -37,14 +37,18 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' },
});
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"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-secret-key:s" => { name => 'kayako_secret_key' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
}
@ -116,9 +120,17 @@ Specify https if needed
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>

View File

@ -37,14 +37,18 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' },
});
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"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-secret-key:s" => { name => 'kayako_secret_key' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
}
@ -116,9 +120,17 @@ Specify https if needed
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>

View File

@ -35,14 +35,17 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' },
});
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"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-secret-key:s" => { name => 'kayako_secret_key' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -115,9 +118,17 @@ Specify https if needed
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>

View File

@ -35,14 +35,17 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' },
});
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"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-secret-key:s" => { name => 'kayako_secret_key' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -115,9 +118,17 @@ Specify https if needed
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>

View File

@ -46,23 +46,26 @@ sub new {
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"urlpath:s" => { name => 'url_path', default => '/api/index.php?' },
"kayako-api-key:s" => { name => 'kayako_api_key' },
"kayako-secret-key:s" => { name => 'kayako_secret_key' },
"reload-cache-time:s" => { name => 'reload_cache_time', default => 180 },
"department-id:s" => { name => 'department_id' },
"staff-id:s" => { name => 'staff_id' },
"status-id:s" => { name => 'status_id' },
"priority-id:s" => { name => 'priority_id' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"start-date:s" => { name => 'start_date' },
"end-date:s" => { name => 'end_date' },
});
{
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto' },
"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-secret-key:s" => { name => 'kayako_secret_key' },
"reload-cache-time:s" => { name => 'reload_cache_time', default => 180 },
"department-id:s" => { name => 'department_id' },
"staff-id:s" => { name => 'staff_id' },
"status-id:s" => { name => 'status_id' },
"priority-id:s" => { name => 'priority_id' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"start-date:s" => { name => 'start_date' },
"end-date:s" => { name => 'end_date' },
});
$self->{statefile_cache} = centreon::plugins::statefile->new(%options);
$self->{statefile_value} = centreon::plugins::statefile->new(%options);
$self->{http} = centreon::plugins::http->new(output => $self->{output});
@ -340,9 +343,17 @@ Specify https if needed
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>

View File

@ -41,13 +41,14 @@ sub new {
if (!defined($options{noptions})) {
$options{options}->add_options(arguments =>
{
"hostname:s@" => { name => 'hostname', },
"hostname:s@" => { name => 'hostname' },
"proto:s@" => { name => 'proto' },
"port:s@" => { name => 'port', },
"username:s@" => { name => 'username', },
"password:s@" => { name => 'password', },
"proxyurl:s@" => { name => 'proxyurl', },
"timeout:s@" => { name => 'timeout', },
"port:s@" => { name => 'port' },
"username:s@" => { name => 'username' },
"password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
}
$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').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back
=head1 DESCRIPTION

View File

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

View File

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

View File

@ -46,6 +46,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"unknown-status:s" => { name => 'unknown_status', default => '' },
"warning-status:s" => { name => 'warning_status' },
"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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
@ -138,6 +139,10 @@ Proxy URL if any
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>
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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>

View File

@ -211,6 +211,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 30 },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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-*>
Threshold warning.

View File

@ -107,6 +107,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 30 },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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-*>
Threshold warning.

View File

@ -151,6 +151,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout', default => 5 },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$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)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--warning-*>
Threshold warning.

View File

@ -51,6 +51,7 @@ sub new {
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"ssl:s@" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
}
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -232,9 +233,9 @@ Proxy URL if any
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

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"name:s" => { name => 'name' },
"regexp" => { name => 'use_regexp' },
@ -167,16 +168,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--urlpath>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"filter-name:s" => { name => 'filter_name', },
"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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -42,6 +42,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
@ -202,16 +203,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -45,6 +45,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"name:s" => { name => 'name' },
"regexp" => { name => 'use_regexp' },
@ -344,16 +345,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -41,6 +41,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/text/list' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
@ -170,16 +171,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--urlpath>
Path to the Tomcat Manager List (Default: Tomcat 7 '/manager/text/list')

View File

@ -43,6 +43,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
@ -238,16 +239,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--urlpath>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

@ -148,6 +148,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"urlpath:s" => { name => 'url_path', default => '/manager/status?XML=true' },
"filter-name:s" => { name => 'filter_name' },
"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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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>
Path to the Tomcat Manager XML (Default: '/manager/status?XML=true')

View File

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

View File

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

View File

@ -54,6 +54,7 @@ sub new {
"proxypac:s" => { name => 'proxypac' },
"timeout:s" => { name => 'timeout', default => 10 },
"ssl:s" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"cert-file:s" => { name => 'cert_file' },
"key-file:s" => { name => 'key_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)
=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>

View File

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

View File

@ -46,6 +46,7 @@ sub new {
"critical" => { name => 'critical' },
"closed" => { name => 'closed' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{status} = { closed => 'ok', opened => 'ok' };
$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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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>
Warning if door is opened (can set --close for closed door)

View File

@ -46,6 +46,7 @@ sub new {
"critical" => { name => 'critical' },
"dry" => { name => 'dry' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{status} = { dry => 'ok', wet => 'ok' };
$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>
Specify username for basic authentification (Mandatory if --credentials is specidied)
Specify username for basic authentification (Mandatory if --credentials is specified)
=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>
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>
Warning if flood sensor is wet (can set --dry for dry sensor)

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--warning>
Warning Threshold for Humidity

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--warning>
Warning Threshold for Illumination

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--warning>
Warning Threshold for Temperature

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -128,16 +129,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--warning>
Warning Threshold for Thermistor Temperature

View File

@ -45,6 +45,7 @@ sub new {
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
@ -129,16 +130,20 @@ Specify this option if you access server-status page over basic authentification
=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>
Specify password for basic authentification (Mandatory if --credentials is specidied)
Specify password for basic authentification (Mandatory if --credentials is specified)
=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<--warning>
Warning Threshold for Voltage

View File

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

View File

@ -47,9 +47,10 @@ sub new {
"freebox-app-id:s@" => { name => 'freebox_app_id' },
"freebox-app-token:s@" => { name => 'freebox_app_token' },
"freebox-api-version:s@" => { name => 'freebox_api_version', },
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"resolution:s@" => { name => 'resolution' },
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"resolution:s@" => { name => 'resolution' },
});
}
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -293,6 +294,10 @@ Proxy URL if any.
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>
Selected data performance resolution in seconds (Default: '300').

View File

@ -42,6 +42,8 @@ sub new {
"proxypac:s" => { name => 'proxypac' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"phonenumber:s" => { name => 'phonenumber' },
"message:s" => { name => 'message' },
"sender:s" => { name => 'sender', default => 'API_HIGHSMS' },
@ -147,6 +149,14 @@ Specify username 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>
Specify phone number.

View File

@ -64,7 +64,6 @@ sub new {
"link-url:s" => { name => 'link_url' },
"centreon-url:s" => { name => 'centreon_url' },
"centreon-token:s" => { name => 'centreon_token' },
"credentials" => { name => 'credentials' },
"ntlm" => { name => 'ntlm' },
"username:s" => { name => 'username' },
@ -72,6 +71,7 @@ sub new {
"proxyurl:s" => { name => 'proxyurl' },
"proxypac:s" => { name => 'proxypac' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
$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
=item B<--ntlm>
Specify this option if you access webpage over ntlm authentification (Use with --credentials option)
=item B<--username>
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)
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=back
=cut

View File

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

View File

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

View File

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

View File

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

View File

@ -42,12 +42,13 @@ sub new {
if (!defined($options{noptions})) {
$options{options}->add_options(arguments =>
{
"hostname:s@" => { name => 'hostname', },
"username:s@" => { name => 'username', },
"password:s@" => { name => 'password', },
"proxyurl:s@" => { name => 'proxyurl', },
"timeout:s@" => { name => 'timeout', },
"resolution:s@" => { name => 'resolution', },
"hostname:s@" => { name => 'hostname' },
"username:s@" => { name => 'username' },
"password:s@" => { name => 'password' },
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"resolution:s@" => { name => 'resolution' },
});
}
$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').
=item B<--ssl-opt>
Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE").
=item B<--resolution>
Selected data performance resolution (Default: '5m').

View File

@ -52,6 +52,7 @@ sub new {
"proxyurl:s@" => { name => 'proxyurl' },
"timeout:s@" => { name => 'timeout' },
"ssl:s@" => { name => 'ssl' },
"ssl-opt:s@" => { name => 'ssl_opt' },
});
}
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@ -250,9 +251,9 @@ Proxy URL if any
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

View File

@ -47,6 +47,7 @@ sub new {
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"timeout:s" => { name => 'timeout' },
"ssl-opt:s@" => { name => 'ssl_opt' },
"api-path:s" => { name => 'api_path' },
});
}
@ -120,7 +121,7 @@ sub build_options_for_httplib {
$self->{option_results}->{timeout} = $self->{timeout};
$self->{option_results}->{port} = 443;
$self->{option_results}->{proto} = 'https';
$self->{option_results}->{proxyurl} = $self->{proxyurl};
$self->{option_results}->{proxyurl} = $self->{proxyurl};
}
sub settings {
@ -269,6 +270,10 @@ Proxy URL if any.
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>
API base url path (Default: '/api/1.11').