forked from ganglia/ganglia-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend show events to support the host view
- Loading branch information
Peter Piela
committed
Jan 18, 2012
1 parent
9b5201d
commit a7f8064
Showing
8 changed files
with
247 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.