mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
show errored ports! (thanks geo)
git-svn-id: http://www.observium.org/svn/observer/trunk@268 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,14 +7,18 @@
|
||||
#}
|
||||
|
||||
|
||||
|
||||
if($_GET['type'] == "down") {
|
||||
$where = "AND I.ifAdminStatus = 'up' AND I.ifOperStatus = 'down'";
|
||||
} elseif ($_GET['type'] == "admindown") {
|
||||
$where = "AND I.ifAdminStatus = 'down'";
|
||||
} elseif ($_GET['type'] == "errors") {
|
||||
$where = "AND ( I.`out_errors` > '0' OR I.`in_errors` > '0' )";
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `interfaces` AS I, `devices` AS D WHERE I.device_id = D.device_id $where ORDER BY D.hostname, I.ifDescr";
|
||||
|
||||
|
||||
$query = mysql_query($sql);
|
||||
|
||||
echo("<table cellspacing=0 cellpadding=2 width=100%>");
|
||||
|
||||
Reference in New Issue
Block a user