149,150c149,150
< 	    $greenlight_color $redlight_color $amberlight_color $unchecked_color 
< 	    $yellowlight_color $pinklight_color $disabled_color 
---
> 	    $greenlight_color $redlight_color $unchecked_color 
> 	    $yellowlight_color $disabled_color 
152c152
< 	    $dtlog_max_failures_per_page %SeverityColors);
---
> 	    $dtlog_max_failures_per_page);
236c236,238
<     $unchecked_color = "#000033";               # color of "unknown" status events
---
>     $greenlight_color = "#009900";                # color of "good" status events
>     $redlight_color = "red";                      # color of "bad" status events
>     $unchecked_color = "#000033";                   # color of "unknown" status events
238,243c240
<     $greenlight_color = "#009900";              # color of "good" status events
<     $redlight_color = "red";                    # color of sev 1 "bad" status events
<     $amberlight_color = "#CC3333";              # color of sev 2 "bad" status events
<     $yellowlight_color = "#FF9933";             # color of sev 3 "bad" status events
<     $pinklight_color = "#CC00FF";               # color for monintor/protocol errors
< 
---
>     $yellowlight_color = "#FF9933";             # color of "going bad" status events
247,271d243
< 
<     # Mapping of severity levels to colors and messages
<     %SeverityColors = (
< 		       '1' => {
< 			       'color' => $redlight_color,
< 			       'msg' => "Failed, Severity 1",
< 			      },
< 		       '2' => {
< 			       'color' => $amberlight_color,
< 			       'msg' => "Failed, Severity 2",
< 			      },
< 		       '3' => {
< 			       'color' => $yellowlight_color,
< 			       'msg' => "Failed, Severity 3",
< 			      },
< 		       '9' => {
< 			       'color' => $pinklight_color,
< 			       'msg' => "Monitor/Protocol Error",
< 			      },
< 		       'default' => {
< 				     'color' => $redlight_color,
< 				     'msg' => "Failed, Unknown Severity",
< 				    },
< 		      );
< 
1040a1013,1014
>     my $bg_fail = $redlight_color ; 
>     my $bg_fail_noalerts = $yellowlight_color ; 
1143,1149c1117,1130
< 	        # Set color and message based on severity of last alert
< 	        my $sev = $s->{last_alert_severity};
< 	        my $key = defined( $SeverityColors{$sev} ) ? $sev : "default";
< 		$td_bg_color = $SeverityColors{$key}->{color};
< 		$failure_string = $SeverityColors{$key}->{msg};
< 		$failure_string .= ",alerts_sent=" . $s->{"alerts_sent"} if $detail_level eq "full";
< 
---
> 		# Check to see if the service has issued any alerts.
> 		# If not, then we call this service "failing" instead
> 		# of failed, on the assumption that if it hasn't
> 		# generated an alert yet, it isn't "really" important,
> 		# although you'd still like to know about it.
> 		if ( $s->{"alerts_sent"} == 0 ) {
> 		    $td_bg_color = $bg_fail_noalerts ;
> 		    $failure_string = "FAILED,NOALERTS" ;
> 		} else {
> 		    $td_bg_color = $bg_fail ;
> 		    $failure_string = "FAILED" ;
> 		    # Also give the # of alerts if "full" view was selected
> 		    $failure_string .= ",alerts_sent=" . $s->{"alerts_sent"} if $detail_level eq "full";
> 		}
1425,1431c1406,1411
< 	        if( defined $SeverityColors{$s->{last_alert_severity}} ){
< 		  $bgcolor = $SeverityColors{$s->{last_alert_severity}}->{color};
< 		  $msg = $SeverityColors{$s->{last_alert_severity}}->{msg};
< 	        }
< 		else{
< 		  $bgcolor = $SeverityColors{default}->{color};
< 		  $msg = $SeverityColors{default}->{msg};
---
> 		if ( $s->{"alerts_sent"} == 0 ) {
> 		    $bgcolor = "$yellowlight_color";
> 		    $msg=": $s->{'last_summary'}<br>(status: FAILED,NOALERTS)";
> 		} else {
> 		    $bgcolor = "$redlight_color";
> 		    $msg=": $s->{'last_summary'}<br>(status: FAILED)";
1595,1598c1575
<         $font_color = ( defined $SeverityColors{$op{$group}{$service}{last_alert_severity}} ) ?
< 	  $SeverityColors{$op{$group}{$service}{last_alert_severity}}->{color}
< 	    : $SeverityColors{default}->{color};
< 
---
> 	$font_color = ($op{$group}{$service}{'alerts_sent'} == 0) ? $yellowlight_color : $redlight_color ;
3267a3245,3257
>     # Old way to draw table
>     if (1 == 0 ) {
> 	$webpage->print("<table align=center border=1 width=\"$service_table_width\">");
> 	$webpage->print
> 	    ("<tr><td><font color=$TEXTCOLOR>Service color legend:</font></td>\n");
> 	$webpage->print("<td><font color=$unchecked_color>Unchecked</font></td>\n");
> 	$webpage->print("<td><font color=$greenlight_color>Good</font></td>\n ");
> 	$webpage->print("<td><font color=$yellowlight_color>Failed<br>(no alerts sent)</font></td>\n");
> 	$webpage->print("<td><font color=$redlight_color>Failed<br>(alerts sent)</font></td>\n");
> 	$webpage->print("<td><font color=$disabled_color>Disabled</font></td>\n");
> 	$webpage->print("</tr></table>");
>     }
>     
3275,3278c3265,3266
<     $webpage->print("<td><font>Failed<br>(monitor error)</font></td>");
<     $webpage->print("<td><font>Failed<br>(severity 3)</font></td>");
<     $webpage->print("<td><font>Failed<br>(severity 2)</font></td>");
<     $webpage->print("<td><font>Failed<br>(severity 1)</font></td>");
---
>     $webpage->print("<td><font>Failed<br>(no alerts sent)</font></td>");
>     $webpage->print("<td><font>Failed<br>(alerts sent)</font></td>");
3284d3271
<     $webpage->print("<td bgcolor=$pinklight_color><font color=$pinklight_color>$pinklight_color</font></td>");
3286d3272
<     $webpage->print("<td bgcolor=$amberlight_color><font color=$amberlight_color>$amberlight_color</font></td>");
3582,3583d3567
< 		} elsif ($key eq "amberlight_color") {
< 		    $redlight_color = $val;
3586,3587d3569
< 		} elsif ($key eq "pinklight_color") {
< 		    $redlight_color = $val;
