mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
enh(iplabel-ekara): change status match and timeframe option default value (#5429)
Refs: CTOR-1387
This commit is contained in:
parent
ee48767a11
commit
5751ee1bfd
@ -61,8 +61,9 @@ sub set_counters {
|
|||||||
$self->{maps_counters}->{global} = [
|
$self->{maps_counters}->{global} = [
|
||||||
{ label => 'scenario-status',
|
{ label => 'scenario-status',
|
||||||
type => 2,
|
type => 2,
|
||||||
warning_default => '%{status} !~ "Success"',
|
warning_default => '%{status} =~ /(Aborted|Stopped|Excluded|Degraded)/',
|
||||||
critical_default => '%{status} =~ "Failure"',
|
critical_default => '%{status} =~ "Failure"',
|
||||||
|
unknown_default => '%{status} =~ /(Unknown|No execution)/',
|
||||||
set => {
|
set => {
|
||||||
key_values => [ { name => 'status' }, { name => 'num_status' }, { name => 'display' } ],
|
key_values => [ { name => 'status' }, { name => 'num_status' }, { name => 'display' } ],
|
||||||
closure_custom_output => $self->can('custom_status_output'),
|
closure_custom_output => $self->can('custom_status_output'),
|
||||||
@ -133,7 +134,7 @@ sub check_options {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
$self->SUPER::check_options(%options);
|
$self->SUPER::check_options(%options);
|
||||||
|
|
||||||
$self->{timeframe} = defined($self->{option_results}->{timeframe}) && $self->{option_results}->{timeframe} ne '' ? $self->{option_results}->{timeframe} : '900';
|
$self->{timeframe} = defined($self->{option_results}->{timeframe}) && $self->{option_results}->{timeframe} ne '' ? $self->{option_results}->{timeframe} : '7500';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $status_mapping = {
|
my $status_mapping = {
|
||||||
@ -220,10 +221,10 @@ Check ip-label Ekara scenarios.
|
|||||||
|
|
||||||
=item B<--timeframe>
|
=item B<--timeframe>
|
||||||
|
|
||||||
Set timeframe period in seconds. (default: 900)
|
Set timeframe period in seconds. (default: 7500)
|
||||||
Example: --timeframe='3600' will check the last hour
|
Example: C<--timeframe='3600'> will check the last hour.
|
||||||
|
Note: If the API/Poller is overloaded, it is preferable to refine
|
||||||
|
this value according to the highest check frequency in the scenario.
|
||||||
|
|
||||||
=item B<--filter-type>
|
=item B<--filter-type>
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ dfsrevent
|
|||||||
--display-transform-src
|
--display-transform-src
|
||||||
dns-resolve-time
|
dns-resolve-time
|
||||||
--dyn-mode
|
--dyn-mode
|
||||||
|
Ekara
|
||||||
-EncodedCommand
|
-EncodedCommand
|
||||||
env
|
env
|
||||||
ESX
|
ESX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user