mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-26 03:08:39 +02:00
enh(iplabel::ekara::restapi::scenarios): reworked defaults status
This commit is contained in:
parent
2c868ab9dd
commit
8486e3592a
@ -61,9 +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} =~ /(Aborted|Stopped|Excluded|Degraded)/',
|
warning_default => '%{status} =~ "Degraded"',
|
||||||
critical_default => '%{status} =~ "Failure"',
|
critical_default => '%{status} =~ "Failure"',
|
||||||
unknown_default => '%{status} =~ /(Unknown|No execution)/',
|
unknown_default => '%{status} =~ /(Unknown|No execution|Aborted|Stopped|Excluded)/',
|
||||||
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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user