From c5016efd1e51def0da9ce92305538a7a3076134f Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 11 Oct 2019 17:07:12 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9arange=20reasonHilite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Check.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index 5db2b1b..fae63d7 100644 --- a/Check.pm +++ b/Check.pm @@ -83,10 +83,10 @@ sub action $lastAgeColor = "Tomato"; } + # Colors statuts $reasonHilite = $Conf{CgiStatusHilightColor}{$Status{$host}{reason}} || $Conf{CgiStatusHilightColor}{$Status{$host}{state}}; + $reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" ); - - $reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" ); if ( $tempState ne "Status_backup_in_progress" && $tempState ne "Status_restore_in_progress" && $Conf{BackupsDisable} == 0 && $Status{$host}{error} ne "" ) { ($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; $shortErr = " ($shortErr)";