if (isset($zabbixAuthHash) && strlen($zabbixAuthHash) > 0) { // Try it with the authentication hash we have $zabbix->setAuthToken($zabbixAuthHash); } elseif (strlen($zabbix->getUsername()) > 0 && strlen($zabbix->getPassword()) > 0 && strlen($zabbix->getZabbixApiUrl()) > 0) { $zabbix->login(); } if (!$zabbix->isLoggedIn()) { header("Location: index.php"); exit; } require_once "template/header.php"; $zabbixTriggerId = (string) $_GET['triggerid']; $zabbixHostId = (string) $_GET['hostid']; if ($zabbixTriggerId > 0 && $zabbixHostId > 0) { // Retrieve the trigger information $trigger = $zabbix->getTriggerByTriggerAndHostId($zabbixTriggerId, $zabbixHostId); $host = $zabbix->getHostById($zabbixHostId); $events = $zabbix->getEventsByTriggerAndHostId($zabbixTriggerId, $zabbixHostId); ?> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <ul class="breadcrumb"> <li> <a href="index.php">Home</a> <span class="divider">/</span> </li> <li> <a href="activetriggers.php">Active Triggers</a> <span class="divider">/</span> </li> <li class="active"> <?php echo cleanTriggerDescription($trigger["description"]);