コード例 #1
0
ファイル: host.php プロジェクト: rockylo/MoZBX
    $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";
$zabbixHostId = (string) $_GET['hostid'];
$zabbixHostGroupId = (string) $_GET['groupid'];
$zabbixHostGroupName = (string) urldecode($_GET['groupname']);
if ($zabbixHostId > 0) {
    $host = $zabbix->getHostById($zabbixHostId);
    // Graphs
    $graphs = $zabbix->getGraphsByHostId($zabbixHostId);
    $graphs = $zabbix->sortGraphsByName($graphs);
    // Triggers
    $triggers = $zabbix->getTriggersByHostId($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="hostgroups.php">Hostgroups</a> <span class="divider">/</span>
            </li>
            <li>