"); #if (file_exists("includes/dev-data-" . strtolower($device[os]) . ".inc.php")) { echo("
"); # echo("

Device Data

"); # include("includes/dev-data-" . strtolower($device[os]) . ".inc.php"); include("includes/dev-overview-data.inc.php"); echo("
"); #} include("overview/ports.inc.php"); if ($services['total']) { echo("
"); echo("

Services

"); echo("
$services[total] $services[up] $services[down] $services[disabled]
"); echo("
"); $sql = "SELECT * FROM services WHERE device_id = '" . $device['device_id'] . "' ORDER BY service_type"; $query = mysql_query($sql); while ($data = mysql_fetch_assoc($query)) { 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" . strtolower($data[service_type]) . ""); $break = ", "; } echo("
"); echo("
"); } $sql = "SELECT *, DATE_FORMAT(timestamp, '%d/%b/%y %T') AS date from syslog WHERE device_id = '" . $device['device_id'] . "' $where"; $sql .= " ORDER BY timestamp DESC LIMIT 20"; $query = mysql_query($sql); if (mysql_affected_rows() > "0") { echo("
"); echo("

Recent Syslog

"); echo(""); while ($entry = mysql_fetch_assoc($query)) { include("includes/print-syslog.inc.php"); } echo("
"); echo("
"); } echo(""); echo("
"); ### Right Pane include("overview/processors.inc.php"); include("overview/mempools.inc.php"); #include("overview/cemp.inc.php"); #include("overview/cmp.inc.php"); #include("overview/hrStorage.inc.php"); include("overview/storage.inc.php"); include("overview/sensors/temperatures.inc.php"); include("overview/sensors/humidity.inc.php"); include("overview/sensors/fanspeeds.inc.php"); include("overview/sensors/voltages.inc.php"); include("overview/sensors/current.inc.php"); include("overview/sensors/power.inc.php"); include("overview/sensors/frequencies.inc.php"); echo("
"); echo("

"); echo(''); echo(" Recent Events

"); $query = "SELECT *,DATE_FORMAT(datetime, '%d/%b/%y %T') as humandate FROM `eventlog` WHERE `host` = '" . $device['device_id'] . "' ORDER BY `datetime` DESC LIMIT 0,10"; $data = mysql_query($query); echo(""); while ($entry = mysql_fetch_assoc($data)) { include("includes/print-event-short.inc.php"); } echo("
"); echo("
"); ?>