.
[corvix.git] / var / deb-package / cluster_raw_old / opt / cluster / lib / www / ganglia / index.php
blob8b831169eb694c528f099d268c2cb5ceae7ab82b
1 <?php
2 /* $Id: index.php 905 2007-12-11 22:38:21Z bernardli $ */
3 include_once "./conf.php";
4 # ATD - function.php must be included before get_context.php. It defines some needed functions.
5 include_once "./functions.php";
6 include_once "./get_context.php";
7 include_once "./ganglia.php";
8 include_once "./get_ganglia.php";
9 include_once "./class.TemplatePower.inc.php";
10 # Usefull for addons.
11 $GHOME = ".";
13 if ($context == "meta" or $context == "control")
15 $title = "$self $meta_designator Report";
16 include_once "./header.php";
17 include_once "./meta_view.php";
19 else if ($context == "tree")
21 $title = "$self $meta_designator Tree";
22 include_once "./header.php";
23 include_once "./grid_tree.php";
25 else if ($context == "cluster" or $context == "cluster-summary")
27 $title = "Cluster Report";
28 include_once "./header.php";
29 include_once "./cluster_view.php";
31 else if ($context == "physical")
33 $title = "Physical View";
34 include_once "./header.php";
35 include_once "./physical_view.php";
37 else if ($context == "node")
39 $title = "Node View";
40 include_once "./header.php";
41 include_once "./show_node.php";
43 else if ($context == "host")
45 $title = "Host Report";
46 include_once "./header.php";
47 include_once "./host_view.php";
49 else
51 $title = "Unknown Context";
52 print "Unknown Context Error: Have you specified a host but not a cluster?.";
54 include_once "./footer.php";