CTOR-1836 Plugin(apps::vtom::restapi) - Mode(jobs): Unknown option --token in the legacy custom mode (#5709)

This commit is contained in:
itoussies 2025-09-09 14:10:16 +02:00 committed by GitHub
parent 16d64d9cda
commit ca9afc7c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 22 deletions

View File

@ -52,6 +52,7 @@ sub new {
'unknown-http-status:s' => { name => 'unknown_http_status' }, 'unknown-http-status:s' => { name => 'unknown_http_status' },
'warning-http-status:s' => { name => 'warning_http_status' }, 'warning-http-status:s' => { name => 'warning_http_status' },
'critical-http-status:s' => { name => 'critical_http_status' }, 'critical-http-status:s' => { name => 'critical_http_status' },
'token:s' => { name => 'token' },
'cache-use' => { name => 'cache_use' } 'cache-use' => { name => 'cache_use' }
}); });
} }
@ -271,27 +272,27 @@ VTOM Rest API
=item B<--hostname> =item B<--hostname>
Set hostname. Set the hostname.
=item B<--port> =item B<--port>
Port used (default: 30002) Set the port used (default: 30002).
=item B<--proto> =item B<--proto>
Specify https if needed (default: 'http') Specify the protocol (default: 'http').
=item B<--api-username> =item B<--api-username>
API username. Set the API username.
=item B<--api-password> =item B<--api-password>
API password. Set the API password.
=item B<--timeout> =item B<--timeout>
Set timeout in seconds (default: 30). Set the timeout in seconds (default: 30).
=back =back

View File

@ -98,7 +98,7 @@ sub set_counters {
$self->{maps_counters_type} = [ $self->{maps_counters_type} = [
{ name => 'global', type => 0, cb_prefix_output => 'prefix_global_output', }, { 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} = [ $self->{maps_counters}->{jobs} = [
@ -343,47 +343,47 @@ Example: --filter-counters='total-error'
=item B<--filter-environment> =item B<--filter-environment>
Filter environment name (cannot be a regexp). Filter by environment name (cannot be a regexp).
=item B<--filter-application> =item B<--filter-application>
Filter application name (cannot be a regexp). Filter by application name (cannot be a regexp).
=item B<--filter-name> =item B<--filter-name>
Filter name (can be a regexp). Filter by name (can be a regexp).
=item B<--timezone> =item B<--timezone>
Set date timezone. Set the timezone.
Can use format: 'Europe/London' or '+0100'. Can use format: 'Europe/London' or '+0100'.
=item B<--warning-status> =item B<--warning-status>
Define the conditions to match for the status to be WARNING (default: -) Define the conditions to match for the status to be WARNING.
You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} You can use the following variables: C<%{name}>, C<%{status}>, C<%{exit_code}>, C<%{message}>, C<%{environment}>, C<%{application}>.
=item B<--critical-status> =item B<--critical-status>
Define the conditions to match for the status to be CRITICAL (default: '%{exit_code} =~ /Error/i'). Define the conditions to match for the status to be CRITICAL (default: C<%{exit_code} =~ /Error/i>).
You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} You can use the following variables: C<%{name}>, C<%{status}>, C<%{exit_code}>, C<%{message}>, C<%{environment}>, C<%{application}>.
=item B<--warning-long> =item B<--warning-long>
Set warning threshold for long jobs (default: none) Set the warning threshold for long jobs.
You can use the following variables: %{name}, %{status}, %{elapsed}, %{application} You can use the following variables: C<%{name}>, C<%{status}>, C<%{elapsed}>, C<%{application}>.
=item B<--critical-long> =item B<--critical-long>
Set critical threshold for long jobs (default: none). Set the critical threshold for long jobs.
You can use the following variables: %{name}, %{status}, %{elapsed}, %{application} You can use the following variables: C<%{name}>, C<%{status}>, C<%{elapsed}>, C<%{application}>.
=item B<--warning-*> B<--critical-*> =item B<--warning-*> B<--critical-*>
Thresholds. Thresholds.
Can be: 'running', 'errors', 'waiting', Can be: C<running>, C<errors>, C<waiting>,
'finished', 'notscheduled', 'descheduled', C<finished>, C<notscheduled>, C<descheduled>,
'success-prct'. C<success-prct>.
=back =back

View File

@ -336,6 +336,7 @@ vdom
vdomain vdomain
VDSL2 VDSL2
VE VE
VTOM
Veeam Veeam
VeloCloud VeloCloud
VE VE