');
if ($config['overview_show_sysDescr']) {
echo '
';
echo '';
/*
if (is_file($config['html_dir'] . '/images/hardware/' . trim($device['sysObjectID'], ".") . '.png')) {
echo ' ';
}
*/
echo '' . escape_html($device['sysDescr']) . ' |
';
}
if ($device['purpose']) {
echo('
Description |
' . escape_html($device['purpose']) . ' |
');
}
if ($device['hardware']) {
if ($device['vendor']) {
echo('
Vendor/Hardware |
' . escape_html($device['vendor'].' '.$device['hardware']) . ' |
');
} else {
echo('
Hardware |
' . escape_html($device['hardware']) . ' |
');
}
} elseif ($device['vendor']) {
// Only Vendor exist
echo('
Vendor |
' . escape_html($device['vendor']) . ' |
');
}
if ($device['os'] !== 'generic') {
echo('
Operating system |
' . escape_html($device['os_text']) . ' ' . escape_html($device['version']) . ($device['features'] ? ' (' . escape_html($device['features']) . ')' : '') . ' |
');
}
if ($device['sysName']) {
echo('
System name | ');
echo('
' . escape_html($device['sysName']). ' |
');
}
if ($_SESSION['userlevel'] >= 5 && $device['ip']) {
echo('
Cached IP | ');
echo('
' . escape_html($device['ip']). ' |
');
}
if ($device['sysContact']) {
echo('
Contact | ');
if (get_dev_attrib($device,'override_sysContact_bool')) {
echo('
' . escape_html(get_dev_attrib($device,'override_sysContact_string')) . ' |
SNMP Contact | ');
}
echo('
' . escape_html($device['sysContact']). ' |
');
}
if ($device['location']) {
echo('
Location |
' . escape_html($device['location']) . ' |
');
if (get_dev_attrib($device,'override_sysLocation_bool') && !empty($device['real_location'])) {
echo('
SNMP Location |
' . escape_html($device['real_location']) . ' |
');
}
}
if ($device['asset_tag']) {
echo('
Asset tag |
' . escape_html($device['asset_tag']) . ' |
');
}
if ($device['serial']) {
echo('
Serial |
' . escape_html($device['serial']) . ' |
');
}
if ($device['state']['la']['5min']) {
if ($device['state']['la']['5min'] > 10) {
$la_class = 'text-danger';
} elseif ($device['state']['la']['5min'] > 4) {
$la_class = 'text-warning';
} else {
$la_class = '';
}
echo('
Load average |
' . number_format((float)$device['state']['la']['1min'],2) . ', ' .
number_format((float)$device['state']['la']['5min'], 2) . ', ' .
number_format((float)$device['state']['la']['15min'], 2) . ' |
');
}
if ($device['uptime']) {
echo('
Uptime |
' . deviceUptime($device) . ' |
');
}
/*
if ($device['status_type'] && $device['status_type'] != 'ok') {
if ($device['status_type'] == 'ping')
{
$reason = 'not Pingable';
}
else if ($device['status_type'] == 'snmp')
{
$reason = 'not SNMPable';
}
else if ($device['status_type'] == 'dns')
{
$reason = 'DNS hostname unresolved';
}
echo('
Down reason |
' . $reason . ' |
');
}
*/
if ($device['last_rebooted']) {
echo('
Last reboot |
' . format_unixtime($device['last_rebooted']) . ' |
');
}
echo("");
echo generate_box_close();
// EOF