Try color status

master
Heuzef 5 years ago
parent 70c6795b81
commit 56dd6d62d0
  1. 7
      Check.pm

@ -119,12 +119,17 @@ sub action
($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; ($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../;
$shortErr = " ($shortErr)"; $shortErr = " ($shortErr)";
} }
if ( $lastAge < 1.1 ) {
$lastAgeCheck = "<span style="color:MediumSeaGreen;">$lastAge</span>";
} else {
$lastAgeCheck = "<span style="color:Tomato;">$lastAge</span>";
}
$str = <<EOF; $str = <<EOF;
<tr$reasonHilite><td class="border">${HostLink($host)}</td> <tr$reasonHilite><td class="border">${HostLink($host)}</td>
<td align="center" class="border">$fullAge</td> <td align="center" class="border">$fullAge</td>
<td align="center" class="border">$incrAge</td> <td align="center" class="border">$incrAge</td>
<td align="center" class="border">$lastAge</td> <td align="center" class="border">$lastAgeCheck</td>
<td align="center" class="border">$lastXferErrors</td> <td align="center" class="border">$lastXferErrors</td>
<td align="center" class="border">???</td> <td align="center" class="border">???</td>
<td align="center" class="border">???</td> <td align="center" class="border">???</td>

Loading…
Cancel
Save