"Fossies" - the Fresh Open Source Software Archive

Member "ganglia-web-3.7.2/conf_default.php" (8 Jun 2016, 15451 Bytes) of package /linux/www/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 "conf_default.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.7.1_vs_3.7.2.

    1 <?php
    2 
    3 ##########################################################################
    4 # IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT 
    5 #
    6 # Please DO NOT edit this file. This file should be left as is. If you
    7 # need to change any of the variables override them in conf.php.
    8 ##########################################################################
    9 #
   10 # Gmetad-webfrontend version. Used to check for updates.
   11 #
   12 $conf['gweb_root'] = dirname(__FILE__);
   13 $conf['gweb_confdir'] = "/var/lib/ganglia-web";
   14 
   15 include_once $conf['gweb_root'] . "/version.php";
   16 
   17 #
   18 # 'readonly': No authentication is required.  All users may view all resources.  No edits are allowed.
   19 #  'enabled': Guest users may view public clusters.  Login is required to make changes.  
   20 #             An administrator must configure an authentication scheme and ACL rules.
   21 # 'disabled': Guest users may perform any actions, including edits.  No authentication is required.
   22 $conf['auth_system'] = 'readonly';
   23 
   24 #
   25 # The name of the directory in "./templates" which contains the
   26 # templates that you want to use. Templates are like a skin for the
   27 # site that can alter its look and feel.
   28 #
   29 $conf['template_name'] = "default";
   30 
   31 #
   32 # If you installed gmetad in a directory other than the default
   33 # make sure you change it here.
   34 #
   35 
   36 # Where gmetad stores the rrd archives.
   37 $conf['gmetad_root'] = "/var/lib/ganglia";
   38 $conf['rrds'] = "${conf['gmetad_root']}/rrds";
   39 
   40 # Where Dwoo (PHP templating engine) store compiled templates
   41 $conf['dwoo_compiled_dir'] = "${conf['gweb_confdir']}/dwoo/compiled";
   42 $conf['dwoo_cache_dir'] = "${conf['gweb_confdir']}/dwoo/cache";
   43 
   44 # Where to store web-based configuration
   45 $conf['views_dir'] = $conf['gweb_confdir'] . '/conf';
   46 $conf['conf_dir'] = $conf['gweb_confdir'] . '/conf';
   47 
   48 # Where to find filter configuration files, if not set filtering
   49 # will be disabled
   50 #$conf['filter_dir'] = "${conf['gweb_confdir']}/filters";
   51 
   52 # Leave this alone if rrdtool is installed in $conf['gmetad_root'],
   53 # otherwise, change it if it is installed elsewhere (like /usr/bin)
   54 $conf['rrdtool'] = "/usr/bin/rrdtool";
   55 
   56 # Render graphs with rrdtool's --slope-mode option
   57 $conf['rrdtool_slope_mode'] = true;
   58 
   59 # If rrdcached is being used, this argument must specify the 
   60 # socket to use.
   61 #
   62 # ganglia-web only requires, and should use, the low-privilege socket
   63 # created with the -L option to rrdcached.  gmetad requires, and must use,
   64 # the fully privileged socket created with the -l option to rrdcached.
   65 $conf['rrdcached_socket'] = "";
   66 
   67 # Location for modular-graph files.
   68 $conf['graphdir']= $conf['gweb_root'] . '/graph.d';
   69 
   70 # Display statistical values on RRD graphs; i.e.: average, min, max
   71 $conf['graphreport_stats'] = true;
   72 $conf['graphreport_stat_items'] = array("now", "min", "avg", "max");
   73 
   74 #
   75 # If you want to grab data from a different ganglia source specify it here.
   76 # Although, it would be strange to alter the IP since the Round-Robin
   77 # databases need to be local to be read. 
   78 #
   79 $conf['ganglia_ip'] = "127.0.0.1";
   80 $conf['ganglia_port'] = 8652;
   81 
   82 #
   83 # The maximum number of dynamic graphs to display.  If you set this
   84 # to 0 (the default) all graphs will be shown.  This option is
   85 # helpful if you are viewing the web pages from a browser with a 
   86 # small pipe.
   87 #
   88 $conf['max_graphs'] = 0;
   89 
   90 #
   91 # In the Cluster View this sets the default number of columns used to
   92 # display the host grid below the summary graphs.
   93 #
   94 $conf['hostcols'] = 4;
   95 
   96 #
   97 # In the Host View this sets the default number of columns used to
   98 # display the metric grid below the summary graphs.
   99 #
  100 $conf['metriccols'] = 2;
  101 
  102 #
  103 # Turn on and off the Grid Snapshot. Now that we have a
  104 # hierarchical snapshot (per-cluster instead of per-node) on
  105 # the meta page this makes more sense. Most people will want this
  106 # on.
  107 #
  108 $conf['show_meta_snapshot'] = "yes";
  109 
  110 #
  111 # What you want to call the meta level:
  112 # Suggested values "Grid" or "Campus"
  113 #
  114 $conf['meta_designator'] = "Grid";
  115 
  116 # 
  117 # The default refresh frequency on pages.
  118 #
  119 $conf['default_refresh'] = 300;
  120 
  121 #
  122 # Colors for the CPU report graph
  123 #
  124 $conf['cpu_user_color'] = "3333bb";
  125 $conf['cpu_nice_color'] = "ffea00";
  126 $conf['cpu_system_color'] = "dd0000";
  127 $conf['cpu_wio_color'] = "ff8a60";
  128 $conf['cpu_idle_color'] = "e2e2f2";
  129 $conf['cpu_steal_color'] = "990099";
  130 $conf['cpu_sintr_color'] = "009933";
  131 
  132 #
  133 # Colors for the MEMORY report graph
  134 #
  135 $conf['mem_used_color'] = "5555cc";
  136 $conf['mem_shared_color'] = "0000aa";
  137 $conf['mem_cached_color'] = "33cc33";
  138 $conf['mem_buffered_color'] = "99ff33";
  139 $conf['mem_free_color'] = "f0ffc0";
  140 $conf['mem_swapped_color'] = "9900CC";
  141 
  142 #
  143 # Colors for the LOAD report graph
  144 #
  145 $conf['load_one_color'] = "CCCCCC";
  146 $conf['proc_run_color'] = "0000FF";
  147 $conf['cpu_num_color']  = "FF0000";
  148 $conf['num_nodes_color'] = "00FF00";
  149 
  150 # Other colors
  151 $conf['jobstart_color'] = "ff3300";
  152 
  153 #
  154 # Colors for the load ranks.
  155 #
  156 $conf['load_colors'] = array(
  157    "100+" => "ff634f",
  158    "75-100" =>"ffa15e",
  159    "50-75" => "ffde5e",
  160    "25-50" => "caff98",
  161    "0-25" => "e2ecff",
  162    "down" => "515151"
  163 );
  164 
  165 #
  166 # Load scaling
  167 #
  168 $conf['load_scale'] = 1.0;
  169 
  170 #
  171 # Default color for single metric graphs
  172 #
  173 $conf['default_metric_color'] = "555555";
  174 
  175 #
  176 # Default metric 
  177 #
  178 $conf['default_metric'] = "load_one";
  179 
  180 #
  181 # remove the domainname from the FQDN hostnames in graphs
  182 # (to help with long hostnames in small charts)
  183 #
  184 $conf['strip_domainname'] = false;
  185 
  186 #
  187 # hide down hosts from cluster view
  188 #
  189 $conf['cluster_hide_down_hosts'] = false;
  190 
  191 #
  192 # Optional summary graphs
  193 # This function is deprecated. Please configure included reports
  194 # in the UI or default.json. Please do not use 
  195 #$conf['optional_graphs'] = array('packet');
  196 
  197 # Enable Zoom support on graphs
  198 $conf['zoom_support'] = true;
  199 
  200 
  201 # 
  202 # Time ranges
  203 # Each value is the # of seconds in that range.
  204 #
  205 $conf['time_ranges'] = array(
  206    'hour'=>3600,
  207    '2hr'=>7200,
  208    '4hr'=>14400,
  209    'day'=>86400,
  210    'week'=>604800,
  211    'month'=>2419200,
  212    'year'=>31449600,
  213    # Needs to be an entry here to support 'r=job' in the query args to graph.php
  214    'job'=>0
  215 );
  216 
  217 # this key must exist in $conf['time_ranges']
  218 $conf['default_time_range'] = 'hour';
  219 
  220 # Graph Engine to use
  221 $conf['graph_engine'] = "rrdtool";
  222 
  223 #$conf['graph_engine'] = "graphite";
  224 $conf['graphite_url_base'] = "http://127.0.0.1/render";
  225 $conf['graphite_rrd_dir'] = "/opt/graphite/storage/rrd";
  226 # Don't forget a trailing "." when specifying a prefix.
  227 # Default is empty.
  228 $conf['graphite_prefix'] = "";
  229 
  230 # One of the bottlenecks is that to get individual metrics we query gmetad which
  231 # returns every single host and all the metrics. If you have lots of hosts and lots of 
  232 # checks this may be quite heavy so you may want to cache data
  233 $conf['cachedata'] = 1;
  234 $conf['cachemodule'] = 'Json';
  235 $conf['cachefile'] = $conf['conf_dir'] . "/ganglia_metrics.cache";
  236 $conf['cachetime'] = 1200; // How long to cache the data in seconds
  237 
  238 # Different settings for Nagios
  239 $conf['nagios_cache_enabled'] = 1;
  240 $conf['nagios_cache_file'] = $conf['conf_dir'] . "/nagios_ganglia.cache";
  241 # Cache data for how many seconds
  242 $conf['nagios_cache_time'] = 45;
  243 
  244 #
  245 # Graph sizes
  246 #
  247 $conf['graph_sizes'] = array(
  248    'small'=>array(
  249      'height'=>65,
  250      'width'=>200,
  251      'fudge_0'=>0,
  252      'fudge_1'=>0,
  253      'fudge_2'=>0
  254    ),
  255    'medium'=>array(
  256      'height'=>95,
  257      'width'=>300,
  258      'fudge_0'=>0,
  259      'fudge_1'=>14,
  260      'fudge_2'=>28
  261    ),
  262 
  263   'large'=>array(
  264      'height'=>150,
  265      'width'=>480,
  266      'fudge_0'=>0,
  267      'fudge_1'=>0,
  268      'fudge_2'=>0
  269    ),
  270 
  271    'xlarge'=>array(
  272      'height'=>300,
  273      'width'=>650,
  274      'fudge_0'=>0,
  275      'fudge_1'=>0,
  276      'fudge_2'=>0
  277    ),
  278 
  279    'xxlarge'=>array(
  280      'height'=>700,
  281      'width'=>1150,
  282      'fudge_0'=>0,
  283      'fudge_1'=>0,
  284      'fudge_2'=>0
  285    ),
  286 
  287    'mobile'=>array(
  288      'height'=>95,
  289      'width'=>220,
  290      'fudge_0'=>0,
  291      'fudge_1'=>0,
  292      'fudge_2'=>0
  293    ),
  294 
  295    # this was the default value when no other size was provided.
  296    'default'=>array(
  297      'height'=>100,
  298      'width'=>400,
  299      'fudge_0'=>0,
  300      'fudge_1'=>0,
  301      'fudge_2'=>0
  302    )
  303 
  304 );
  305 $conf['default_graph_size'] = 'default';
  306 $conf['graph_sizes_keys'] = array_keys( $conf['graph_sizes'] );
  307 
  308 # sets a default graph size separate from the regular default graph size. You
  309 # can also set this default on a per-view basis by setting 'default_size' in 
  310 # the view .json file.
  311 $conf['default_view_graph_size'] = 'medium';
  312 
  313 # sets a default graph size for optional graphs separate from the regular
  314 # default graph size.
  315 $conf['default_optional_graph_size'] = 'medium';
  316 
  317 # The API can serve up graphs, but the URLs should be fully qualified.
  318 # The default value is a hack to serve up the called hostname when
  319 # possible. It is best to define this manually.
  320 $conf['external_location'] = "http://localhost/ganglia-2";
  321 
  322 # In earlier versions of gmetad, hostnames were handled in a case
  323 # sensitive manner
  324 # If your hostname directories have been renamed to lower case,
  325 # set this option to 0 to disable backward compatibility.
  326 # From version 3.2, backwards compatibility will be disabled by default.
  327 # default: true  (for gmetad < 3.2)
  328 # default: false (for gmetad >= 3.2)
  329 $conf['case_sensitive_hostnames'] = true;
  330 
  331 # The following property controls whether the graphs contained in metric
  332 # groups are initially displayed or collapsed
  333 $conf['metric_groups_initially_collapsed'] = false;
  334 
  335 # The following property controls whether opening a metric group is
  336 # remembered in your sesssion
  337 $conf['remember_open_metric_groups'] = true;
  338 
  339 # Overlay events on graphs. Those are defined by specifying all the events
  340 # in events.json
  341 $conf['overlay_events'] = true;
  342 
  343 # Settings for allowing the Nagios API to be used as an additional
  344 # event source. Will only be enabled if overlay_nagios_events is true.
  345 $conf['overlay_nagios_events'] = false;
  346 $conf['overlay_nagios_base_url'] = 'http://localhost/nagios';
  347 
  348 # If you have periodic events that happen often e.g. they will make the
  349 # graph poorly. By default we exclude events on monthly and yearly graphs
  350 $conf['overlay_events_exclude_ranges'] = array("month", "year");
  351 
  352 # Overlay events line can be either dashed or solid. Use "solid" for solid
  353 # lines, anything else (including blanks) means a dashed line.
  354 $conf['overlay_events_line_type'] = "dashed";
  355 
  356 # What is the provider use to provide events.
  357 # Examples: "json", "mdb2"
  358 $conf['overlay_events_provider'] = "json";
  359 # Where is the Overlay events file stored
  360 $conf['overlay_events_file'] = $conf['conf_dir'] . "/events.json";
  361 
  362 # If using MDB2, connection string:
  363 $conf['overlay_events_dsn'] = "mysql://dbuser:dbpassword@localhost/ganglia";
  364 
  365 $conf['overlay_events_color_map_file'] = $conf['conf_dir'] . "/event_color.json";
  366 
  367 # For event shading.  Value in hex, 'FF' = 100% opaque.
  368 # the _shade_ value should be less than _tick_
  369 $conf['overlay_events_tick_alpha']  = '30';
  370 $conf['overlay_events_shade_alpha'] = '20';
  371 
  372 # Colors to use e.g. in graph_colors
  373 $conf['graph_colors'] = array("0000A3", "FF3300", "FFCC33", "00CC66", "B88A00", "33FFCC", "809900", "FF3366", "FF33CC", "CC33FF", "CCFF33", "FFFF66", "33CCFF");
  374 
  375 # Are heatmaps enabled
  376 $conf['heatmaps_enabled'] = 1;
  377 
  378 # Decorated titles are of the form cluster/host, graph_title/metric, 
  379 # time range. By setting this attribute to false the clsuter/host and 
  380 # time range items are excluded.
  381 $conf['decorated_graph_title'] = true;
  382 
  383 # If set to yes, will display stacked graph (aggregated metric across hosts) in cluster view
  384 $conf['show_stacked_graphs'] = 1;
  385 
  386 # If set to false the grid view under the main tab will be displayed only if 
  387 # the grid name is not "unspecified", or a parent grid has been defined.
  388 # If set to true the grid view will always be displayed even when only a
  389 # single cluster has been defined.
  390 $conf['always_display_grid_view'] = true;
  391 
  392 # In the host view, should we include/exclude optional cluster graphs?
  393 $conf['optional_cluster_graphs_for_host_view'] = true;
  394 
  395 # Color for the timeshift line
  396 $conf['timeshift_line_color'] = "#FFD17F";
  397 
  398 # Color for trend line
  399 $conf['trend_line_color'] = "#53E2FF";
  400 
  401 # Control whether arguments can be passed into php reports
  402 $conf['enable_pass_in_arguments_to_optional_graphs'] = false;
  403 
  404 # Control wether present graphs with 'bytes', 'Bytes', 'bytes/s', 'Bytes/s', 'kB', 'MB', 'GB', 'bits', 'Bits', 'bits/s', 'Bits/s'
  405 # as vertical label have their base value set to 1024
  406 $conf['rrdtool_base_1024'] = false;
  407 
  408 # Metrics autocompletion picker. This loads all metrics asynchronously
  409 # during search, rather than pre-loading at page load.
  410 $conf['picker_autocomplete'] = false;
  411 
  412 # Allow views to be generated on the fly by passing the json object
  413 # along with the 'ad-hoc-view' parameter.  While there are no known
  414 # vulnerabilities, passing a complex json object on a url may be an
  415 # attack vector for malicious users so ad-hoc-views are disabled by
  416 # default.
  417 $conf['ad-hoc-views'] = false;
  418 
  419 # Configure memcache server(s) for any memcached capabilities.
  420 $conf['memcached_servers'] = array ( '127.0.0.1:11211' );
  421 
  422 # Choose between tabular or calendar views
  423 $conf['display_events_using_calendar'] = false;
  424 
  425 # Organize views using a tree. A new attribute "parent" has been
  426 # added to the json definition of a view that is used to specify
  427 # the path from the root node to its desired folder, e.g. 
  428 # "Exchange Servers/Throughtput". Individual path entries are
  429 # separated by a forward slash.
  430 $conf['display_views_using_tree'] = false;
  431 
  432 # Array of pathnames that define view tree nodes that should be opened
  433 # when the tree is first created in a browser session. Path entries are 
  434 # separated using "--"
  435 #$conf['view_tree_nodes_initially_open'] = array();
  436 
  437 # Gmetad will send back <EXTRA_DATA> information that is not utilized
  438 # in many code paths. This will pre-emptively strip out the tags in 
  439 # those code paths to save time during XML parsing.
  440 $conf['strip_extra'] = true;
  441 
  442 # By default we'll just download Jquery, Cubism and D3 required libraries from a CDN that offers
  443 # that for free. If that is undesirable you can override this in conf.php by putting 
  444 # downloading the asset and putting relative path or absolute paths to it e.g.
  445 #$conf['cubism_js_path'] = "js/cubism.v1.min.js";
  446 $conf['jquery_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js";
  447 $conf['jquerymobile_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jquery-mobile/1.4.5/jquery.mobile.min.js";
  448 $conf['jqueryui_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js";
  449 $conf['rickshaw_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.5.1/rickshaw.min.js";
  450 $conf['cubism_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/cubism/1.6.0/cubism.v1.min.js";
  451 $conf['d3_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js";
  452 $conf['protovis_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/protovis/3.3.1/protovis.min.js";
  453 $conf['jstree_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/jstree.min.js";
  454 $conf['jstree_css_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/themes/default/style.min.css";
  455 
  456 $conf['jquery_flot_base_path'] = "https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot";
  457 
  458 # Enable Cubism integration http://square.github.io/cubism/
  459 $conf['cubism_enabled'] = true;
  460 $conf['cubism_default_height'] = 30;
  461 $conf['cubism_default_step'] = 15;
  462 # Set this if you are fronted by a proxy and that ends up messing with Cubism URL detection
  463 #$conf['ganglia_url_prefix'] = "https://metric.domain.com";
  464 #$conf['ganglia_url_suffix'] = "/ganglia";