|
|
@ -77,6 +77,7 @@ sub action |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600)); |
|
|
|
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Color for age |
|
|
|
# Color for age |
|
|
|
if ( $lastAge < 1.1 ) { |
|
|
|
if ( $lastAge < 1.1 ) { |
|
|
|
$lastAgeColor = "MediumSeaGreen"; |
|
|
|
$lastAgeColor = "MediumSeaGreen"; |
|
|
@ -128,11 +129,9 @@ if ( $Conf{BackupsDisable} == 1 ) { |
|
|
|
$tempState = $Status{$host}{state}; |
|
|
|
$tempState = $Status{$host}{state}; |
|
|
|
$tempReason = $Status{$host}{reason}; |
|
|
|
$tempReason = $Status{$host}{reason}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" ); |
|
|
|
$reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" ); |
|
|
|
if ( $tempState ne "Status_backup_in_progress" |
|
|
|
if ( $tempState ne "Status_backup_in_progress" && $tempState ne "Status_restore_in_progress" && $Conf{BackupsDisable} == 0 && $Status{$host}{error} ne "" ) { |
|
|
|
&& $tempState ne "Status_restore_in_progress" |
|
|
|
|
|
|
|
&& $Conf{BackupsDisable} == 0 |
|
|
|
|
|
|
|
&& $Status{$host}{error} ne "" ) { |
|
|
|
|
|
|
|
($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; |
|
|
|
($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; |
|
|
|
$shortErr = " ($shortErr)"; |
|
|
|
$shortErr = " ($shortErr)"; |
|
|
|
} |
|
|
|
} |
|
|
|