|
|
@ -33,7 +33,7 @@ sub action |
|
|
|
|
|
|
|
|
|
|
|
# Start loop |
|
|
|
# Start loop |
|
|
|
foreach my $host ( GetUserHosts(1) ) { |
|
|
|
foreach my $host ( GetUserHosts(1) ) { |
|
|
|
my($incrAge, $reasonHilite, $frequency, $lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors, $lastXferErrorsColor); |
|
|
|
my($incrAge, $reasonHilite, $frequency, $lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors, $lastXferErrorsColor, $ifErrors); |
|
|
|
my($shortErr); |
|
|
|
my($shortErr); |
|
|
|
my @Backups = $bpc->BackupInfoRead($host); |
|
|
|
my @Backups = $bpc->BackupInfoRead($host); |
|
|
|
|
|
|
|
|
|
|
@ -61,12 +61,15 @@ sub action |
|
|
|
$lastAgeColor = "Tomato"; |
|
|
|
$lastAgeColor = "Tomato"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Color for errors |
|
|
|
# Color and link for errors |
|
|
|
$lastXferErrors = $Backups[@Backups-1]->{xferErrs} if ( @Backups ); |
|
|
|
$lastXferErrors = $Backups[@Backups-1]->{xferErrs} if ( @Backups ); |
|
|
|
if ( $lastXferErrors == 0 ) { |
|
|
|
if ( $lastXferErrors == 0 ) { |
|
|
|
$lastXferErrorsColor = "MediumSeaGreen"; |
|
|
|
$lastXferErrorsColor = "MediumSeaGreen"; |
|
|
|
|
|
|
|
$ifErrors = ""; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$lastXferErrorsColor = "Tomato"; |
|
|
|
$lastXferErrorsColor = "Tomato"; |
|
|
|
|
|
|
|
my $browseErrors = "?action=view&type=XferErr&num=0&host=$host"; |
|
|
|
|
|
|
|
$ifErrors = "<a href="$browseErrors" target="_blank">[Show me]</a>"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Colors statuts |
|
|
|
# Colors statuts |
|
|
@ -127,14 +130,13 @@ sub action |
|
|
|
|
|
|
|
|
|
|
|
# Get URL for explore file |
|
|
|
# Get URL for explore file |
|
|
|
my $browseFile = "?action=browse&host=$host"; |
|
|
|
my $browseFile = "?action=browse&host=$host"; |
|
|
|
my $browseErrors = "?action=view&type=XferErr&num=0&host=$host"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Show summary |
|
|
|
# Show summary |
|
|
|
$str .= <<EOF; |
|
|
|
$str .= <<EOF; |
|
|
|
<tr$reasonHilite> |
|
|
|
<tr$reasonHilite> |
|
|
|
<td class="border"><a href="$browseFile" target="_blank">$host</a></td> |
|
|
|
<td class="border"><a href="$browseFile" target="_blank">$host</a></td> |
|
|
|
<td align="center" class="border" style="color:$lastAgeColor;">$lastAge <em>(Freq: $frequency)</em></td> |
|
|
|
<td align="center" class="border" style="color:$lastAgeColor;">$lastAge <em>(Freq: $frequency)</em></td> |
|
|
|
<td align="center" class="border" style="color:$lastXferErrorsColor;">$lastXferErrors (<a href="$browseErrors" target="_blank">Extract errors</a>)</td> |
|
|
|
<td align="center" class="border" style="color:$lastXferErrorsColor;">$lastXferErrors $ifErrors</td> |
|
|
|
<td align="center" class="border" style="color:$sizeConsistencyColor;">$sizeConsistency</td> |
|
|
|
<td align="center" class="border" style="color:$sizeConsistencyColor;">$sizeConsistency</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
EOF |
|
|
|
EOF |
|
|
|