mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
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:
@@ -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>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user