forked from ganglia/ganglia-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
host_overview.php
29 lines (27 loc) · 906 Bytes
/
host_overview.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include_once "./eval_conf.php";
include_once "./functions.php";
include_once "./get_context.php";
include_once "./ganglia.php";
include_once "./get_ganglia.php";
include_once "./dwoo/dwooAutoload.php";
try {
$dwoo = new Dwoo($conf['dwoo_compiled_dir'], $conf['dwoo_cache_dir']);
} catch (Exception $e) {
print "<H4>There was an error initializing the Dwoo PHP Templating Engine: " .
$e->getMessage() .
"<br><br>The compile directory should be owned and writable by the apache user.</H4>";
exit;
}
$tpl = new Dwoo_Template_File( template("host_overview.tpl") );
$data = new Dwoo_Data();
getHostOverViewData($hostname,
$metrics,
$cluster,
$hosts_up,
$hosts_down,
$always_timestamp,
$always_constant,
$data);
$dwoo->output($tpl, $data);
?>