diff --git a/Check.pm b/Check.pm index cd19f91..5db2b1b 100644 --- a/Check.pm +++ b/Check.pm @@ -85,24 +85,6 @@ sub action $reasonHilite = $Conf{CgiStatusHilightColor}{$Status{$host}{reason}} || $Conf{CgiStatusHilightColor}{$Status{$host}{state}}; - # If Backup is disable - if ( $Conf{BackupsDisable} == 1 ) { - if ( $Status{$host}{state} ne "Status_backup_in_progress" && $Status{$host}{state} ne "Status_restore_in_progress" ) { - $reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_OnlyManualBackups}; - $tempState = "Disabled_OnlyManualBackups"; - $tempReason = ""; - } else { - $tempState = $Status{$host}{state}; - $tempReason = $Status{$host}{reason}; - } - } elsif ($Conf{BackupsDisable} == 2 ) { - $reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_AllBackupsDisabled}; - $tempState = "Disabled_AllBackupsDisabled"; - $tempReason = ""; - } else { - $tempState = $Status{$host}{state}; - $tempReason = $Status{$host}{reason}; - } $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 "" ) {