@@ -61,8 +61,9 @@ sub set_counters {
61
61
$self -> {maps_counters }-> {global } = [
62
62
{ label => ' scenario-status' ,
63
63
type => 2,
64
- warning_default => ' %{status} !~ "Success" ' ,
64
+ warning_default => ' %{status} =~ /(Aborted|Stopped|Excluded|Degraded)/ ' ,
65
65
critical_default => ' %{status} =~ "Failure"' ,
66
+ unknown_default => ' %{status} =~ /(Unknown|No execution)/' ,
66
67
set => {
67
68
key_values => [ { name => ' status' }, { name => ' num_status' }, { name => ' display' } ],
68
69
closure_custom_output => $self -> can(' custom_status_output' ),
@@ -133,7 +134,7 @@ sub check_options {
133
134
my ($self , %options ) = @_ ;
134
135
$self -> SUPER::check_options(%options );
135
136
136
- $self -> {timeframe } = defined ($self -> {option_results }-> {timeframe }) && $self -> {option_results }-> {timeframe } ne ' ' ? $self -> {option_results }-> {timeframe } : ' 900 ' ;
137
+ $self -> {timeframe } = defined ($self -> {option_results }-> {timeframe }) && $self -> {option_results }-> {timeframe } ne ' ' ? $self -> {option_results }-> {timeframe } : ' 7500 ' ;
137
138
}
138
139
139
140
my $status_mapping = {
@@ -220,10 +221,10 @@ Check ip-label Ekara scenarios.
220
221
221
222
=item B<--timeframe >
222
223
223
- Set timeframe period in seconds. (default: 900 )
224
- Example: --timeframe='3600' will check the last hour
225
-
226
-
224
+ Set timeframe period in seconds. (default: 7500 )
225
+ Example: C< --timeframe='3600' > will check the last hour.
226
+ Note: If the API/Poller is overloaded, it is preferable to refine
227
+ this value according to the highest check frequency in the scenario.
227
228
228
229
=item B<--filter-type >
229
230
0 commit comments