diff --git a/centreon-plugins/apps/apache/serverstatus/mode/cpuload.pm b/centreon-plugins/apps/apache/serverstatus/mode/cpuload.pm index 285ead041..9bd7f8359 100644 --- a/centreon-plugins/apps/apache/serverstatus/mode/cpuload.pm +++ b/centreon-plugins/apps/apache/serverstatus/mode/cpuload.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/server-status/?auto" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -131,15 +132,23 @@ Set path to get server-status page in auto mode (Default: '/server-status/?auto' =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/apache/serverstatus/mode/requests.pm b/centreon-plugins/apps/apache/serverstatus/mode/requests.pm index c65400931..d140a3f1a 100644 --- a/centreon-plugins/apps/apache/serverstatus/mode/requests.pm +++ b/centreon-plugins/apps/apache/serverstatus/mode/requests.pm @@ -40,6 +40,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/server-status/?auto" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -220,15 +221,23 @@ Set path to get server-status page in auto mode (Default: '/server-status/?auto' =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/apache/serverstatus/mode/responsetime.pm b/centreon-plugins/apps/apache/serverstatus/mode/responsetime.pm index 3264d795b..2320ca1d6 100644 --- a/centreon-plugins/apps/apache/serverstatus/mode/responsetime.pm +++ b/centreon-plugins/apps/apache/serverstatus/mode/responsetime.pm @@ -40,6 +40,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/server-status/?auto" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -123,15 +124,23 @@ Set path to get server-status page in auto mode (Default: '/server-status/?auto' =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--proxyurl> diff --git a/centreon-plugins/apps/apache/serverstatus/mode/slotstates.pm b/centreon-plugins/apps/apache/serverstatus/mode/slotstates.pm index 2075db477..9d05b5d27 100644 --- a/centreon-plugins/apps/apache/serverstatus/mode/slotstates.pm +++ b/centreon-plugins/apps/apache/serverstatus/mode/slotstates.pm @@ -201,6 +201,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/server-status/?auto" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -344,15 +345,23 @@ Set path to get server-status page in auto mode (Default: '/server-status/?auto' =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/apache/serverstatus/mode/workers.pm b/centreon-plugins/apps/apache/serverstatus/mode/workers.pm index c6528174f..736aff510 100644 --- a/centreon-plugins/apps/apache/serverstatus/mode/workers.pm +++ b/centreon-plugins/apps/apache/serverstatus/mode/workers.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/server-status/?auto" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -135,15 +136,23 @@ Set path to get server-status page in auto mode (Default: '/server-status/?auto' =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/elasticsearch/restapi/custom/api.pm b/centreon-plugins/apps/elasticsearch/restapi/custom/api.pm index eb10f5a35..84232a9c6 100644 --- a/centreon-plugins/apps/elasticsearch/restapi/custom/api.pm +++ b/centreon-plugins/apps/elasticsearch/restapi/custom/api.pm @@ -116,6 +116,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/apps/github/mode/commits.pm b/centreon-plugins/apps/github/mode/commits.pm index 49043f7dd..b8ff55079 100644 --- a/centreon-plugins/apps/github/mode/commits.pm +++ b/centreon-plugins/apps/github/mode/commits.pm @@ -40,9 +40,6 @@ sub new { "hostname:s" => { name => 'hostname', default => 'api.github.com' }, "port:s" => { name => 'port', default => '443'}, "proto:s" => { name => 'proto', default => 'https' }, - "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' }, @@ -143,18 +140,6 @@ Port used by GitHub's API (Default: '443') Specify https if needed (Default: 'https') -=item B<--credentials> - -Specify this option if you access webpage over basic authentification - -=item B<--username> - -Specify username - -=item B<--password> - -Specify password - =item B<--proxyurl> Proxy URL if any diff --git a/centreon-plugins/apps/github/mode/issues.pm b/centreon-plugins/apps/github/mode/issues.pm index fdebb9bba..53c67b40f 100644 --- a/centreon-plugins/apps/github/mode/issues.pm +++ b/centreon-plugins/apps/github/mode/issues.pm @@ -38,9 +38,6 @@ sub new { "hostname:s" => { name => 'hostname', default => 'api.github.com' }, "port:s" => { name => 'port', default => '443'}, "proto:s" => { name => 'proto', default => 'https' }, - "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' }, @@ -150,18 +147,6 @@ Port used by GitHub's API (Default: '443') Specify https if needed (Default: 'https') -=item B<--credentials> - -Specify this option if you access webpage over basic authentification - -=item B<--username> - -Specify username - -=item B<--password> - -Specify password - =item B<--proxyurl> Proxy URL if any diff --git a/centreon-plugins/apps/github/mode/pullrequests.pm b/centreon-plugins/apps/github/mode/pullrequests.pm index f0768e86a..9a7174a7a 100644 --- a/centreon-plugins/apps/github/mode/pullrequests.pm +++ b/centreon-plugins/apps/github/mode/pullrequests.pm @@ -38,12 +38,9 @@ sub new { "hostname:s" => { name => 'hostname', default => 'api.github.com' }, "port:s" => { name => 'port', default => '443' }, "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' }, @@ -135,18 +132,6 @@ Port used by GitHub's API (Default: '443') Specify https if needed (Default: 'https') -=item B<--credentials> - -Specify this option if you access webpage over basic authentification - -=item B<--username> - -Specify username - -=item B<--password> - -Specify password - =item B<--proxyurl> Proxy URL if any diff --git a/centreon-plugins/apps/github/mode/stats.pm b/centreon-plugins/apps/github/mode/stats.pm index 1cfed2dde..b76a23445 100644 --- a/centreon-plugins/apps/github/mode/stats.pm +++ b/centreon-plugins/apps/github/mode/stats.pm @@ -39,9 +39,6 @@ sub new { "hostname:s" => { name => 'hostname', default => 'api.github.com' }, "port:s" => { name => 'port', default => '443'}, "proto:s" => { name => 'proto', default => 'https' }, - "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' }, @@ -134,18 +131,6 @@ Specify https if needed (Default: 'https') Set path to get GitHub's status information (Default: '/repo/:owner/:repository') -=item B<--credentials> - -Specify this option if you access webpage over basic authentification - -=item B<--username> - -Specify username - -=item B<--password> - -Specify password - =item B<--proxyurl> Proxy URL if any diff --git a/centreon-plugins/apps/github/mode/status.pm b/centreon-plugins/apps/github/mode/status.pm index ee8b1b35d..ad71073cf 100644 --- a/centreon-plugins/apps/github/mode/status.pm +++ b/centreon-plugins/apps/github/mode/status.pm @@ -47,9 +47,6 @@ sub new { "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' }, @@ -154,18 +151,6 @@ Specify https if needed (Default: 'https') Set path to get GitHub's status information (Default: '/api/last-message.json') -=item B<--credentials> - -Specify this option if you access webpage over basic authentification - -=item B<--username> - -Specify username - -=item B<--password> - -Specify password - =item B<--proxyurl> Proxy URL if any diff --git a/centreon-plugins/apps/jenkins/mode/jobstate.pm b/centreon-plugins/apps/jenkins/mode/jobstate.pm index b9797a2cd..fda34baa4 100644 --- a/centreon-plugins/apps/jenkins/mode/jobstate.pm +++ b/centreon-plugins/apps/jenkins/mode/jobstate.pm @@ -42,6 +42,7 @@ sub new { "urlpath:s" => { name => 'url_path' }, "timeout:s" => { name => 'timeout' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -163,6 +164,14 @@ Set path to get Jenkins information Required to use username/password authentication method +=item B<--basic> + +Specify this option if you access API over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access API over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) + =item B<--username> Specify username for API authentification diff --git a/centreon-plugins/apps/kingdee/eas/custom/api.pm b/centreon-plugins/apps/kingdee/eas/custom/api.pm index 7533a0c37..4ed7e83e4 100644 --- a/centreon-plugins/apps/kingdee/eas/custom/api.pm +++ b/centreon-plugins/apps/kingdee/eas/custom/api.pm @@ -115,6 +115,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/apps/nginx/serverstatus/mode/connections.pm b/centreon-plugins/apps/nginx/serverstatus/mode/connections.pm index 5232bca8b..8becb8253 100644 --- a/centreon-plugins/apps/nginx/serverstatus/mode/connections.pm +++ b/centreon-plugins/apps/nginx/serverstatus/mode/connections.pm @@ -46,6 +46,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/nginx_status" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -140,15 +141,23 @@ Set path to get server-status page in auto mode (Default: '/nginx_status') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/nginx/serverstatus/mode/requests.pm b/centreon-plugins/apps/nginx/serverstatus/mode/requests.pm index 6f7ea8bbe..7485a0348 100644 --- a/centreon-plugins/apps/nginx/serverstatus/mode/requests.pm +++ b/centreon-plugins/apps/nginx/serverstatus/mode/requests.pm @@ -46,6 +46,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/nginx_status" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -188,15 +189,23 @@ Set path to get server-status page in auto mode (Default: '/nginx_status') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/nginx/serverstatus/mode/responsetime.pm b/centreon-plugins/apps/nginx/serverstatus/mode/responsetime.pm index fb7384811..f473c1c53 100644 --- a/centreon-plugins/apps/nginx/serverstatus/mode/responsetime.pm +++ b/centreon-plugins/apps/nginx/serverstatus/mode/responsetime.pm @@ -40,6 +40,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/nginx_status" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -121,15 +122,23 @@ Set path to get server-status page in auto mode (Default: '/nginx_status') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--proxyurl> diff --git a/centreon-plugins/apps/nsclient/restapi/mode/query.pm b/centreon-plugins/apps/nsclient/restapi/mode/query.pm index 235f278f4..2ea0b5f1d 100644 --- a/centreon-plugins/apps/nsclient/restapi/mode/query.pm +++ b/centreon-plugins/apps/nsclient/restapi/mode/query.pm @@ -36,11 +36,12 @@ sub new { $self->{version} = '1.1'; $options{options}->add_options(arguments => { - "hostname:s" => { name => 'hostname' }, - "http-peer-addr:s" => { name => 'http_peer_addr' }, - "port:s" => { name => 'port', default => 8443 }, - "proto:s" => { name => 'proto', default => 'https' }, + "hostname:s" => { name => 'hostname' }, + "http-peer-addr:s" => { name => 'http_peer_addr' }, + "port:s" => { name => 'port', default => 8443 }, + "proto:s" => { name => 'proto', default => 'https' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "legacy-password:s" => { name => 'legacy_password' }, @@ -193,15 +194,23 @@ Specify https if needed (Default: 'https') =item B<--credentials> -Specify this option if you access webpage over basic authentification +Specify this option if you access webpage with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access webpage over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access webpage over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--legacy-password> diff --git a/centreon-plugins/apps/php/apc/web/mode/filecache.pm b/centreon-plugins/apps/php/apc/web/mode/filecache.pm index 4b8b122b0..d818dfa10 100644 --- a/centreon-plugins/apps/php/apc/web/mode/filecache.pm +++ b/centreon-plugins/apps/php/apc/web/mode/filecache.pm @@ -207,6 +207,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/apc.php" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -275,15 +276,23 @@ Set path to get server-status page in auto mode (Default: '/apc.php') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/php/apc/web/mode/memory.pm b/centreon-plugins/apps/php/apc/web/mode/memory.pm index 3b3ac34eb..01c0c47ca 100644 --- a/centreon-plugins/apps/php/apc/web/mode/memory.pm +++ b/centreon-plugins/apps/php/apc/web/mode/memory.pm @@ -103,6 +103,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/apc.php" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -172,15 +173,23 @@ Set path to get server-status page in auto mode (Default: '/apc.php') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/php/fpm/web/mode/usage.pm b/centreon-plugins/apps/php/fpm/web/mode/usage.pm index 794fe4eeb..7be540700 100644 --- a/centreon-plugins/apps/php/fpm/web/mode/usage.pm +++ b/centreon-plugins/apps/php/fpm/web/mode/usage.pm @@ -147,6 +147,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/fpm-status" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -215,15 +216,23 @@ Set path to get server-status page in auto mode (Default: '/fpm-status') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specidied) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specidied) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/redis/restapi/custom/api.pm b/centreon-plugins/apps/redis/restapi/custom/api.pm index d52669170..bec80be57 100644 --- a/centreon-plugins/apps/redis/restapi/custom/api.pm +++ b/centreon-plugins/apps/redis/restapi/custom/api.pm @@ -121,6 +121,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; $self->{option_results}->{ssl} = $self->{ssl}; diff --git a/centreon-plugins/apps/tomcat/web/mode/applications.pm b/centreon-plugins/apps/tomcat/web/mode/applications.pm index bd2326b79..5af685645 100644 --- a/centreon-plugins/apps/tomcat/web/mode/applications.pm +++ b/centreon-plugins/apps/tomcat/web/mode/applications.pm @@ -37,6 +37,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -164,15 +165,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/listapplication.pm b/centreon-plugins/apps/tomcat/web/mode/listapplication.pm index 6cbd71abb..b1322788a 100644 --- a/centreon-plugins/apps/tomcat/web/mode/listapplication.pm +++ b/centreon-plugins/apps/tomcat/web/mode/listapplication.pm @@ -37,6 +37,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -147,15 +148,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/memory.pm b/centreon-plugins/apps/tomcat/web/mode/memory.pm index 6ab9114c7..8ed1a5f37 100644 --- a/centreon-plugins/apps/tomcat/web/mode/memory.pm +++ b/centreon-plugins/apps/tomcat/web/mode/memory.pm @@ -38,6 +38,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -199,15 +200,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/requestinfo.pm b/centreon-plugins/apps/tomcat/web/mode/requestinfo.pm index 9beccda37..6fb4f75e0 100644 --- a/centreon-plugins/apps/tomcat/web/mode/requestinfo.pm +++ b/centreon-plugins/apps/tomcat/web/mode/requestinfo.pm @@ -41,6 +41,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -341,15 +342,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/sessions.pm b/centreon-plugins/apps/tomcat/web/mode/sessions.pm index 3a1135d6a..eea57f5dc 100644 --- a/centreon-plugins/apps/tomcat/web/mode/sessions.pm +++ b/centreon-plugins/apps/tomcat/web/mode/sessions.pm @@ -37,6 +37,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -167,15 +168,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/threads.pm b/centreon-plugins/apps/tomcat/web/mode/threads.pm index 2c6cc45f3..4ceda416f 100644 --- a/centreon-plugins/apps/tomcat/web/mode/threads.pm +++ b/centreon-plugins/apps/tomcat/web/mode/threads.pm @@ -39,6 +39,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -235,15 +236,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/tomcat/web/mode/traffic.pm b/centreon-plugins/apps/tomcat/web/mode/traffic.pm index 8a93762bd..f45f4d506 100644 --- a/centreon-plugins/apps/tomcat/web/mode/traffic.pm +++ b/centreon-plugins/apps/tomcat/web/mode/traffic.pm @@ -144,6 +144,7 @@ sub new { "port:s" => { name => 'port', default => '8080' }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -294,15 +295,23 @@ Protocol used http or https =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/apps/video/zixi/restapi/custom/api.pm b/centreon-plugins/apps/video/zixi/restapi/custom/api.pm index 2a6ca1239..ee72369c4 100644 --- a/centreon-plugins/apps/video/zixi/restapi/custom/api.pm +++ b/centreon-plugins/apps/video/zixi/restapi/custom/api.pm @@ -123,6 +123,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/apps/vtom/restapi/custom/api.pm b/centreon-plugins/apps/vtom/restapi/custom/api.pm index 2ac706b2d..a6c3f0276 100644 --- a/centreon-plugins/apps/vtom/restapi/custom/api.pm +++ b/centreon-plugins/apps/vtom/restapi/custom/api.pm @@ -123,6 +123,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/cloud/docker/restapi/custom/api.pm b/centreon-plugins/cloud/docker/restapi/custom/api.pm index 121da9b33..184889eef 100644 --- a/centreon-plugins/cloud/docker/restapi/custom/api.pm +++ b/centreon-plugins/cloud/docker/restapi/custom/api.pm @@ -48,6 +48,7 @@ sub new { "port:s" => { name => 'port', default => 8080 }, "proto:s" => { name => 'proto' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -391,15 +392,23 @@ Specify https if needed (Default: 'http') =item B<--credentials> -Specify this option if you access webpage over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specidied) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specidied) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--proxyurl> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm index 397a5b9af..e6fe92fef 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?eL" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -125,15 +126,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?eL') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm index 417ab1ac2..9461a4656 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -125,15 +126,23 @@ Set path to get server-status page in auto mode (Default: '/') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm index 404f765fc..e9d3b12ca 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?em" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -126,15 +127,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?em') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm index 9274f2015..aa3106555 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?em" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -126,15 +127,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?em') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm index ec5267151..877a685da 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?em" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -125,15 +126,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?em') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm index 1517895f1..ec2d45be6 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?eR" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -125,15 +126,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?eR') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm index 7898fdc5c..f5a485f85 100644 --- a/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm @@ -39,6 +39,7 @@ sub new { "proto:s" => { name => 'proto' }, "urlpath:s" => { name => 'url_path', default => "/index.htm?ev" }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, @@ -126,15 +127,23 @@ Set path to get server-status page in auto mode (Default: '/index.htm?ev') =item B<--credentials> -Specify this option if you access server-status page over basic authentification +Specify this option if you access server-status page with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specified) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specified) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access server-status page over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access server-status page over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/network/cisco/prime/restapi/custom/api.pm b/centreon-plugins/network/cisco/prime/restapi/custom/api.pm index 413254f76..14da2c6a5 100644 --- a/centreon-plugins/network/cisco/prime/restapi/custom/api.pm +++ b/centreon-plugins/network/cisco/prime/restapi/custom/api.pm @@ -125,6 +125,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/notification/slack/mode/alert.pm b/centreon-plugins/notification/slack/mode/alert.pm index ffe220f6d..5f9a26da9 100644 --- a/centreon-plugins/notification/slack/mode/alert.pm +++ b/centreon-plugins/notification/slack/mode/alert.pm @@ -65,6 +65,7 @@ sub new { "centreon-url:s" => { name => 'centreon_url' }, "centreon-token:s" => { name => 'centreon_token' }, "credentials" => { name => 'credentials' }, + "basic" => { name => 'basic' }, "ntlm" => { name => 'ntlm' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, @@ -326,15 +327,23 @@ Proxy pac file (can be an url or local file) =item B<--credentials> -Specify this option if you access webpage over basic authentification +Specify this option if you access webpage with authentication =item B<--username> -Specify username for basic authentification (Mandatory if --credentials is specidied) +Specify username for authentication (Mandatory if --credentials is specified) =item B<--password> -Specify password for basic authentification (Mandatory if --credentials is specidied) +Specify password for authentication (Mandatory if --credentials is specified) + +=item B<--basic> + +Specify this option if you access webpage over basic authentication and don't want a '401 UNAUTHORIZED' error to be logged on your webserver. + +Specify this option if you access webpage over hidden basic authentication or you'll get a '404 NOT FOUND' error. + +(Use with --credentials) =item B<--timeout> diff --git a/centreon-plugins/storage/hp/storeonce/restapi/custom/api.pm b/centreon-plugins/storage/hp/storeonce/restapi/custom/api.pm index 2a2281d78..8a462a503 100644 --- a/centreon-plugins/storage/hp/storeonce/restapi/custom/api.pm +++ b/centreon-plugins/storage/hp/storeonce/restapi/custom/api.pm @@ -112,6 +112,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = 'https'; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/storage/kaminario/restapi/custom/api.pm b/centreon-plugins/storage/kaminario/restapi/custom/api.pm index 66a78af30..27f3717fd 100644 --- a/centreon-plugins/storage/kaminario/restapi/custom/api.pm +++ b/centreon-plugins/storage/kaminario/restapi/custom/api.pm @@ -114,6 +114,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = 'https'; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; } diff --git a/centreon-plugins/storage/netapp/restapi/custom/restapi.pm b/centreon-plugins/storage/netapp/restapi/custom/restapi.pm index f8bd8969f..5e940f272 100644 --- a/centreon-plugins/storage/netapp/restapi/custom/restapi.pm +++ b/centreon-plugins/storage/netapp/restapi/custom/restapi.pm @@ -122,6 +122,7 @@ sub build_options_for_httplib { $self->{option_results}->{proto} = $self->{proto}; $self->{option_results}->{proxyurl} = $self->{proxyurl}; $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; $self->{option_results}->{username} = $self->{username}; $self->{option_results}->{password} = $self->{password}; $self->{option_results}->{ssl} = $self->{ssl};