Hello Tyson,

Am 2016-01-20 20:20, schrieb Tyson Ray Jones:

> I'm dealing with Ganglia (webpage 3.7.0, backend 3.7.1) on RHL 4.4.7
> and trying to add a new graph to the 'Host Report' webpage, which
> combines several other graphs / metrics.
> It seems however that all documentation and examples I find online use
> files and directories which my Ganglia instance doesn't have.

Lots of files and paths depend on configure options, so could be found 
on
different places...

My conf.php file has:
# define the gweb home directory
$conf['ganglia_dir'] = dirname(__FILE__);


# Where to store web-based configuration
$conf['views_dir'] = $conf['ganglia_dir'] . '/conf';
$conf['conf_dir'] = $conf['ganglia_dir'] . '/conf';

On Linux I'd look into /etc/ganglia-web/ for that file...

> I've read I must add a new json graph specification in my _GRAPH.D_
> directory, but there's only a single graph.d directory in my file
> system and it's at _/USR/SHARE/GANGLIA _(which makes me think it
> shouldn't be edited, unless it is to defy linux convention).

Most probably it is...  New files won't be overwritten, but it's not
the directory I'd like to see for configuration.  Files in there won't
be automatically shown in the cluster or host view.

> It contains a bunch of, what look like, example reports which don't
> correlate to the many existing graphs I see on the 'Host Report' page
> (and I can't at all find where those are specified in the
> file-system).

see below.

> Adding a new report to /USR/SHARE/GANGLIA/GRAPH.D makes a new metric
> appear in the metric dropdown box on the 'Cluster report' Overview
> page which can be displayed on the Overview page, but there's no
> indication of how to add it to the 'Host Report' webpage.

In the host view, below the reports, but above the metrics there is a
button called "Edit Optional Graphs" (provided that you have right
to change the configuration).  Click and a window pops up where you
can select/deselect metrics to be displayed.

That is stored in a file called host_<hostname>.json in ./conf (same
directory where default.json is located. Sample file:

{
   "excluded_reports": [
     "cpu_used_report"
   ],
   "included_reports": [
     "mem_win2008_report"
   ]
}

> /LIB/VAR/GANGLIA/GRAPH.D does NOT EXIST, nor do any relevant
> subdirectories of GANGLIA (like host name).

That looks suspicious and like a packaging problem.

> I've read also that there might be a file in
> _/VAR/LIB/GANGLIA-WEB/CONF _which contains a _INCLUDED_REPORTS _list.
> There isn't, but there is at /USR/SHARE/GANGLIA/CONF/DEFAULT.JSON. It
> contains only four of the default reports which are displayed at the
> 'Grid Report' page.
> I can use this to add a new graph to the 'Grid Report' page, but I'm
> looking at a new graph to the 'Host Report' page, for which I can not
> find any of the existing graph json specifications or any relevant
> directories.

Hm, that file used to include the report in both the cluster and host 
view.
The interactions between included and excluded reports is also poorly 
documented
Some thoughts are documented in 
https://github.com/ganglia/ganglia-web/commit/99bf471089662b3470ed3f8f320122a757de109f

Hope this helps,
Jochen



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to