"Fossies" - the Fresh Open Source Software Archive

Member "ganglia-web-3.7.2/host_overview.php" (12 Apr 2015, 906 Bytes) of package /linux/misc/ganglia-web-3.7.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "host_overview.php" see the Fossies "Dox" file reference documentation.

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