[csw-devel] SF.net SVN: gar:[17525] csw/mgar/pkg/ganglia/trunk/files/conf.php

d_pocock at users.sourceforge.net d_pocock at users.sourceforge.net
Thu Mar 22 18:09:29 CET 2012


Revision: 17525
          http://gar.svn.sourceforge.net/gar/?rev=17525&view=rev
Author:   d_pocock
Date:     2012-03-22 17:09:29 +0000 (Thu, 22 Mar 2012)
Log Message:
-----------
ganglia: adapt conf.php for new web UI

Modified Paths:
--------------
    csw/mgar/pkg/ganglia/trunk/files/conf.php

Modified: csw/mgar/pkg/ganglia/trunk/files/conf.php
===================================================================
--- csw/mgar/pkg/ganglia/trunk/files/conf.php	2012-03-22 17:09:02 UTC (rev 17524)
+++ csw/mgar/pkg/ganglia/trunk/files/conf.php	2012-03-22 17:09:29 UTC (rev 17525)
@@ -1,218 +1,10 @@
 <?php
-# $Id: conf.php.in 2194 2010-01-08 16:58:25Z d_pocock $
-#
-# Gmetad-webfrontend version. Used to check for updates.
-#
-include_once "./version.php";
 
-#
-# The name of the directory in "./templates" which contains the
-# templates that you want to use. Templates are like a skin for the
-# site that can alter its look and feel.
-#
-$template_name = "default";
+$conf['gmetad_root'] = "/var/opt/csw/ganglia";
+$conf['rrds'] = "${conf['gmetad_root']}/rrds";
+$conf['dwoo_compiled_dir'] = "${conf['gmetad_root']}/dwoo";
+$conf['views_dir'] = $conf['gmetad_root'] . '/conf';
+$conf['conf_dir'] = $conf['gmetad_root'] . '/conf';
 
-#
-# If you installed gmetad in a directory other than the default
-# make sure you change it here.
-#
-
-# Where gmetad stores the rrd archives.
-$gmetad_root = "/var/opt/csw/ganglia";
-$rrds = "$gmetad_root/rrds";
-
-# Where Dwoo (PHP templating engine) store compiled templates
-$dwoo_compiled_dir = "$gmetad_root/dwoo";
-
-# Where to find filter configuration files, if not set filtering
-# will be disabled
-#$filter_dir = "$gmetad_root/filters";
-
-# Leave this alone if rrdtool is installed in $gmetad_root,
-# otherwise, change it if it is installed elsewhere (like /usr/bin)
-define("RRDTOOL", "/opt/csw/bin/rrdtool");
-
-# If rrdcached is being used, this argument must specify the 
-# socket to use.
-#
-# ganglia-web only requires, and should use, the low-privilege socket
-# created with the -L option to rrdcached.  gmetad requires, and must use,
-# the fully privileged socket created with the -l option to rrdcached.
-$rrdcached_socket = "";
-
-# Location for modular-graph files.
-$graphdir='./graph.d';
-
-# Display statistical values on RRD graphs; i.e.: average, min, max
-$graphreport_stats = true;
-
-#
-# If you want to grab data from a different ganglia source specify it here.
-# Although, it would be strange to alter the IP since the Round-Robin
-# databases need to be local to be read. 
-#
-$ganglia_ip = "127.0.0.1";
-$ganglia_port = 8652;
-
-#
-# The maximum number of dynamic graphs to display.  If you set this
-# to 0 (the default) all graphs will be shown.  This option is
-# helpful if you are viewing the web pages from a browser with a 
-# small pipe.
-#
-$max_graphs = 0;
-
-#
-# In the Cluster View this sets the default number of columns used to
-# display the host grid below the summary graphs.
-#
-$hostcols = 4;
-
-#
-# In the Host View this sets the default number of columns used to
-# display the metric grid below the summary graphs.
-#
-$metriccols = 2;
-
-#
-# Turn on and off the Grid Snapshot. Now that we have a
-# hierarchical snapshot (per-cluster instead of per-node) on
-# the meta page this makes more sense. Most people will want this
-# on.
-#
-$show_meta_snapshot = "yes";
-
-# 
-# The default refresh frequency on pages.
-#
-$default_refresh = 300;
-
-#
-# Colors for the CPU report graph
-#
-$cpu_user_color = "3333bb";
-$cpu_nice_color = "ffea00";
-$cpu_system_color = "dd0000";
-$cpu_wio_color = "ff8a60";
-$cpu_idle_color = "e2e2f2";
-
-#
-# Colors for the MEMORY report graph
-#
-$mem_used_color = "5555cc";
-$mem_shared_color = "0000aa";
-$mem_cached_color = "33cc33";
-$mem_buffered_color = "99ff33";
-$mem_free_color = "00ff00";
-$mem_swapped_color = "9900CC";
-
-#
-# Colors for the LOAD report graph
-#
-$load_one_color = "CCCCCC";
-$proc_run_color = "0000FF";
-$cpu_num_color  = "FF0000";
-$num_nodes_color = "00FF00";
-
-# Other colors
-$jobstart_color = "ff3300";
-
-#
-# Colors for the load ranks.
-#
-$load_colors = array(
-   "100+" => "ff634f",
-   "75-100" =>"ffa15e",
-   "50-75" => "ffde5e",
-   "25-50" => "caff98",
-   "0-25" => "e2ecff",
-   "down" => "515151"
-);
-
-#
-# Load scaling
-#
-$load_scale = 1.0;
-
-#
-# Default color for single metric graphs
-#
-$default_metric_color = "555555";
-
-#
-# Default metric 
-#
-$default_metric = "load_one";
-
-#
-# remove the domainname from the FQDN hostnames in graphs
-# (to help with long hostnames in small charts)
-#
-$strip_domainname = false;
-
-#
-# Optional summary graphs
-#
-#$optional_graphs = array('packet');
-
-# 
-# Time ranges
-# Each value is the # of seconds in that range.
-#
-$time_ranges = array(
-   'hour'=>3600,
-   'day'=>86400,
-   'week'=>604800,
-   'month'=>2419200,
-   'year'=>31449600
-);
-
-# this key must exist in $time_ranges
-$default_time_range = 'hour';
-
-#
-# Graph sizes
-#
-$graph_sizes = array(
-   'small'=>array(
-     'height'=>40,
-     'width'=>130,
-     'fudge_0'=>0,
-     'fudge_1'=>0,
-     'fudge_2'=>0
-   ),
-   'medium'=>array(
-     'height'=>75,
-     'width'=>300,
-     'fudge_0'=>0,
-     'fudge_1'=>14,
-     'fudge_2'=>28
-   ),
-   'large'=>array(
-     'height'=>600,
-     'width'=>800,
-     'fudge_0'=>0,
-     'fudge_1'=>0,
-     'fudge_2'=>0
-   ),
-   # this was the default value when no other size was provided.
-   'default'=>array(
-     'height'=>100,
-     'width'=>400,
-     'fudge_0'=>0,
-     'fudge_1'=>0,
-     'fudge_2'=>0
-   )
-);
-$default_graph_size = 'default';
-$graph_sizes_keys = array_keys( $graph_sizes );
-
-# In earlier versions of gmetad, hostnames were handled in a case
-# sensitive manner
-# If your hostname directories have been renamed to lower case,
-# set this option to 0 to disable backward compatibility.
-# From version 3.2, backwards compatibility will be disabled by default.
-# default: true  (for gmetad < 3.2)
-# default: false (for gmetad >= 3.2)
-$case_sensitive_hostnames = false;
+$conf['rrdtool'] = "/opt/csw/bin/rrdtool";
 ?>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list