$this->includeJsFile('inventory.host.view.js.php');
$overviewFormList = new CFormList();
$host_name = (new CLinkAction($data['host']['host']))
->setMenuPopup(CMenuPopupHelper::getHost($data['host']['hostid'], false));
if ($data['host']['maintenance_status'] == HOST_MAINTENANCE_STATUS_ON) {
if (array_key_exists($data['host']['maintenanceid'], $data['maintenances'])) {
$maintenance = $data['maintenances'][$data['host']['maintenanceid']];
$maintenance_icon = makeMaintenanceIcon($data['host']['maintenance_type'], $maintenance['name'],
$maintenance['description']
$maintenance_icon = makeMaintenanceIcon($data['host']['maintenance_type'], _('Inaccessible maintenance'),
$host_name = (new CSpan([$host_name, $maintenance_icon]))->addClass(ZBX_STYLE_REL_CONTAINER);
$overviewFormList->addRow(_('Host name'), (new CDiv($host_name))->setWidth(ZBX_TEXTAREA_BIG_WIDTH));
if ($data['host']['host'] !== $data['host']['name']) {
$overviewFormList->addRow(_('Visible name'), (new CDiv($data['host']['name']))->setWidth(ZBX_TEXTAREA_BIG_WIDTH));
INTERFACE_TYPE_AGENT => [],
INTERFACE_TYPE_SNMP => [],
INTERFACE_TYPE_JMX => [],
INTERFACE_TYPE_IPMI => []
INTERFACE_TYPE_AGENT => _('Agent interfaces'),
INTERFACE_TYPE_SNMP => _('SNMP interfaces'),
INTERFACE_TYPE_JMX => _('JMX interfaces'),
INTERFACE_TYPE_IPMI => _('IPMI interfaces')