Exemplo n.º 1
0
    $zabbix->login();
}
if (!$zabbix->isLoggedIn()) {
    header("Location: index.php");
    exit;
}
require_once "template/header.php";
$zabbixGraphId = (string) $_GET['graphid'];
$zabbixGraphPeriod = (string) $_GET['period'];
$zabbixHostId = (string) $_GET['hostid'];
$zabbixHostGroupId = (string) $_GET['groupid'];
$zabbixHostGroupName = (string) urldecode($_GET['groupname']);
$zabbixHostName = (string) urldecode($_GET['hostname']);
$urlParameters = "hostid=" . $zabbixHostId . "&hostname=" . $zabbixHostName . "&groupid=" . $zabbixHostGroupId . "&groupname=" . urlencode($zabbixHostGroupName);
if ($zabbixGraphId > 0) {
    $graph = $zabbix->getGraphById($zabbixGraphId);
} else {
    $graph = null;
}
?>
<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="hostgroups.php">Hostgroups</a>
                <span class="divider">/</span>
            </li>