diff --git a/src/apps/vtom/restapi/custom/legacy.pm b/src/apps/vtom/restapi/custom/legacy.pm index b229e93db..55528b767 100644 --- a/src/apps/vtom/restapi/custom/legacy.pm +++ b/src/apps/vtom/restapi/custom/legacy.pm @@ -52,6 +52,7 @@ sub new { 'unknown-http-status:s' => { name => 'unknown_http_status' }, 'warning-http-status:s' => { name => 'warning_http_status' }, 'critical-http-status:s' => { name => 'critical_http_status' }, + 'token:s' => { name => 'token' }, 'cache-use' => { name => 'cache_use' } }); } @@ -271,27 +272,27 @@ VTOM Rest API =item B<--hostname> -Set hostname. +Set the hostname. =item B<--port> -Port used (default: 30002) +Set the port used (default: 30002). =item B<--proto> -Specify https if needed (default: 'http') +Specify the protocol (default: 'http'). =item B<--api-username> -API username. +Set the API username. =item B<--api-password> -API password. +Set the API password. =item B<--timeout> -Set timeout in seconds (default: 30). +Set the timeout in seconds (default: 30). =back diff --git a/src/apps/vtom/restapi/mode/jobs.pm b/src/apps/vtom/restapi/mode/jobs.pm index f41100d71..32f43a6bc 100644 --- a/src/apps/vtom/restapi/mode/jobs.pm +++ b/src/apps/vtom/restapi/mode/jobs.pm @@ -98,7 +98,7 @@ sub set_counters { $self->{maps_counters_type} = [ { name => 'global', type => 0, cb_prefix_output => 'prefix_global_output', }, - { name => 'jobs', type => 1, cb_prefix_output => 'prefix_job_output', message_multiple => 'All jobs are ok', , skipped_code => { -10 => 1, -11 => 1 } } + { name => 'jobs', type => 1, cb_prefix_output => 'prefix_job_output', message_multiple => 'All jobs are ok', skipped_code => { -10 => 1, -11 => 1 } } ]; $self->{maps_counters}->{jobs} = [ @@ -343,47 +343,47 @@ Example: --filter-counters='total-error' =item B<--filter-environment> -Filter environment name (cannot be a regexp). +Filter by environment name (cannot be a regexp). =item B<--filter-application> -Filter application name (cannot be a regexp). +Filter by application name (cannot be a regexp). =item B<--filter-name> -Filter name (can be a regexp). +Filter by name (can be a regexp). =item B<--timezone> -Set date timezone. +Set the timezone. Can use format: 'Europe/London' or '+0100'. =item B<--warning-status> -Define the conditions to match for the status to be WARNING (default: -) -You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} +Define the conditions to match for the status to be WARNING. +You can use the following variables: C<%{name}>, C<%{status}>, C<%{exit_code}>, C<%{message}>, C<%{environment}>, C<%{application}>. =item B<--critical-status> -Define the conditions to match for the status to be CRITICAL (default: '%{exit_code} =~ /Error/i'). -You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} +Define the conditions to match for the status to be CRITICAL (default: C<%{exit_code} =~ /Error/i>). +You can use the following variables: C<%{name}>, C<%{status}>, C<%{exit_code}>, C<%{message}>, C<%{environment}>, C<%{application}>. =item B<--warning-long> -Set warning threshold for long jobs (default: none) -You can use the following variables: %{name}, %{status}, %{elapsed}, %{application} +Set the warning threshold for long jobs. +You can use the following variables: C<%{name}>, C<%{status}>, C<%{elapsed}>, C<%{application}>. =item B<--critical-long> -Set critical threshold for long jobs (default: none). -You can use the following variables: %{name}, %{status}, %{elapsed}, %{application} +Set the critical threshold for long jobs. +You can use the following variables: C<%{name}>, C<%{status}>, C<%{elapsed}>, C<%{application}>. =item B<--warning-*> B<--critical-*> Thresholds. -Can be: 'running', 'errors', 'waiting', -'finished', 'notscheduled', 'descheduled', -'success-prct'. +Can be: C, C, C, +C, C, C, +C. =back diff --git a/tests/resources/spellcheck/stopwords.txt b/tests/resources/spellcheck/stopwords.txt index d8e5b0bae..f3d530c2e 100644 --- a/tests/resources/spellcheck/stopwords.txt +++ b/tests/resources/spellcheck/stopwords.txt @@ -336,6 +336,7 @@ vdom vdomain VDSL2 VE +VTOM Veeam VeloCloud VE