mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
show toner on device overview (beta), minor fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@3014 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -48,10 +48,10 @@ if ($services['total'])
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM services WHERE device_id = ? ORDER BY service_type", array($device['device_id'])) as $data)
|
||||
{
|
||||
if ($data[service_status] == "0" && $data[service_ignore] == "1") { $status = "grey"; }
|
||||
if ($data[service_status] == "1" && $data[service_ignore] == "1") { $status = "green"; }
|
||||
if ($data[service_status] == "0" && $data[service_ignore] == "0") { $status = "red"; }
|
||||
if ($data[service_status] == "1" && $data[service_ignore] == "0") { $status = "blue"; }
|
||||
if ($data['service_status'] == "0" && $data['service_ignore'] == "1") { $status = "grey"; }
|
||||
if ($data['service_status'] == "1" && $data['service_ignore'] == "1") { $status = "green"; }
|
||||
if ($data['service_status'] == "0" && $data['service_ignore'] == "0") { $status = "red"; }
|
||||
if ($data['service_status'] == "1" && $data['service_ignore'] == "0") { $status = "blue"; }
|
||||
echo("$break<a class=$status>" . strtolower($data[service_type]) . "</a>");
|
||||
$break = ", ";
|
||||
}
|
||||
@@ -86,6 +86,7 @@ include("overview/storage.inc.php");
|
||||
|
||||
if(is_array($entity_state['group']['c6kxbar'])) { include("overview/c6kxbar.inc.php"); }
|
||||
|
||||
include("overview/toner.inc.php");
|
||||
include("overview/sensors/temperatures.inc.php");
|
||||
include("overview/sensors/humidity.inc.php");
|
||||
include("overview/sensors/fanspeeds.inc.php");
|
||||
|
Reference in New Issue
Block a user