Only show port in red if Operational Down and Admin Up, as suggested by mziel (http://www.observium.org/forum/index.php/topic,82.0.html)

git-svn-id: http://www.observium.org/svn/observer/trunk@1729 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-11-20 23:21:38 +00:00
parent 30bdd952ee
commit ae8dcd22c1
+2 -2
View File
@@ -29,10 +29,10 @@ while($device = mysql_fetch_array($query)) {
echo("<td align=left>".$device['ifDescr'] . "</td>");
echo("<td align=right>". $device['ifAdminStatus']."</td>");
# Mark interfaces which are down yet not ignored, or up - yet ignored - as to draw the attention
# Mark interfaces which are OperDown (but not AdminDown) yet not ignored, or up - yet ignored - as to draw the attention
# to a possible problem.
#
$outofsync = ($device['ignore'] == ($device['ifOperStatus'] == 'down' ? 1 : 0)) ? "" : "class=red";
$outofsync = ($device['ignore'] == ($device['ifOperStatus'] == 'down' && $device['ifAdminStatus'] != 'down' ? 1 : 0)) ? "" : "class=red";
echo("<td align=right><span ".$outofsync.">". $device['ifOperStatus']."</span></td>");