'hidden-xl']); echo(''); if ($config['overview_show_sysDescr']) { echo('"); } // Groups if (OBSERVIUM_EDITION !== 'community' && $_SESSION['userlevel'] >= 5 && $groups = get_entity_group_names('device', $device['device_id'])) { echo(''); } if ($device['purpose']) { echo(''); } if ($device['hardware']) { if ($device['vendor']) { echo(''); } else { echo(''); } } elseif ($device['vendor']) { // Only Vendor exist echo(''); } if ($device['os'] !== 'generic') { echo(''); } if ($device['sysName']) { echo(''); echo(' '); } if ($device['sysContact']) { echo(''); if (get_dev_attrib($device, 'override_sysContact_bool')) { echo(' '); } echo(' '); } if ($device['location']) { echo(''); if (get_dev_attrib($device, 'override_sysLocation_bool') && !empty($device['real_location'])) { echo(''); } } if ($device['asset_tag']) { echo(''); } if ($device['serial']) { echo(''); } 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(''); } if ($_SESSION['userlevel'] >= 5 && $device['ip']) { echo(''); echo(' '); } if ($device['uptime']) { echo(''); } /* 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(''); } */ if ($device['last_rebooted']) { echo(''); } echo("
' . escape_html($device['sysDescr']) . "
Groups '); foreach ($groups as $group_id => $group) { $link = generate_link($group, [ 'page' => 'group', 'group_id' => $group_id ]); // always escaped (as default) echo '' . $link . ' '; } echo('
Description ' . escape_html($device['purpose']) . '
Vendor/Hardware ' . escape_html($device['vendor'] . ' ' . $device['hardware']) . '
Hardware ' . escape_html($device['hardware']) . '
Vendor ' . escape_html($device['vendor']) . '
Operating system ' . escape_html($device['os_text']) . ' ' . escape_html($device['version']) . ($device['features'] ? ' (' . escape_html($device['features']) . ')' : '') . '
System name' . escape_html($device['sysName']) . '
Contact' . escape_html(get_dev_attrib($device, 'override_sysContact_string')) . '
SNMP Contact' . escape_html($device['sysContact']) . '
Location ' . escape_html($device['location']) . '
SNMP Location ' . escape_html($device['real_location']) . '
Asset tag ' . escape_html($device['asset_tag']) . '
Serial ' . escape_html($device['serial']) . '
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) . '
Cached IP' . escape_html($device['ip']) . '
Uptime ' . device_uptime($device) . '
Down reason ' . $reason . '
Last reboot ' . format_unixtime($device['last_rebooted']) . '
"); echo generate_box_close(); // EOF