From c79b051fd7b29885560783326186ddf63c9b1d81 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Thu, 19 Feb 2015 10:05:49 +0100 Subject: [PATCH] Critical status if higher than unknown status --- centreon/plugins/output.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon/plugins/output.pm b/centreon/plugins/output.pm index 82fb0dd1f..325f91e27 100644 --- a/centreon/plugins/output.pm +++ b/centreon/plugins/output.pm @@ -68,8 +68,8 @@ sub new { $self->{is_output_xml} = 0; $self->{is_output_json} = 0; $self->{errors} = {OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3, PENDING => 4}; - $self->{myerrors} = {0 => "OK", 1 => "WARNING", 3 => "CRITICAL", 7 => "UNKNOWN"}; - $self->{myerrors_mask} = {CRITICAL => 3, WARNING => 1, UNKNOWN => 7, OK => 0}; + $self->{myerrors} = {0 => "OK", 1 => "WARNING", 3 => "UNKNOWN", 7 => "CRITICAL"}; + $self->{myerrors_mask} = {CRITICAL => 7, WARNING => 1, UNKNOWN => 3, OK => 0}; $self->{global_short_concat_outputs} = {OK => undef, WARNING => undef, CRITICAL => undef, UNKNOWN => undef, UNQUALIFIED_YET => undef}; $self->{global_short_outputs} = {OK => [], WARNING => [], CRITICAL => [], UNKNOWN => [], UNQUALIFIED_YET => []}; $self->{global_long_output} = [];