No. Just add your report to the list of reports e.g.

{"included_reports":["load_report","mem_report","cpu_report","network_report","test_report]}

Do not redeclare included_reports.

Vladimir

On Wed, 2 May 2012, Pronko, Eric wrote:

The default setting I had was just with included_reports.  I added 
optional_reports just to try it, then took it out after it didn't change 
anything.

Should I have one included_reports per line, instead of one line with multiple 
options, maybe?

________________________________________
From: Vladimir Vuksan [vli...@veus.hr]
Sent: Wednesday, May 02, 2012 5:05 PM
To: Pronko, Eric
Cc: ganglia-general@lists.sourceforge.net
Subject: RE: [Ganglia-general] help with optional reports

I suspect you broke JSON by adding the optional_reports with a comma
between that and the included reports.

Vladimir

On Wed, 2 May 2012, Pronko, Eric wrote:

I'd like it to appear in every host by default.  But the existing configuration 
I have for included_reports doesn't seem to do anything (at least as far as I 
can perceive).  Have I configured it incorrectly?

Eric
________________________________________
From: Vladimir Vuksan [vli...@veus.hr]
Sent: Wednesday, May 02, 2012 4:56 PM
To: Pronko, Eric
Cc: ganglia-general@lists.sourceforge.net
Subject: Re: [Ganglia-general] help with optional reports

Actually just add to included_reports array. optional_reports key is
meaningless in JSON. Default.json applies to all hosts. If you want it for
particular host add the particular report as

host_yourhostname.domain.com.json

e.g.

{
"included_reports": ["apache_report"]
}

It will inherit from default.json then cluster_clustername.json. You can
also exclude hosts from included reports from upper levels.

Vladimir


On Wed, 2 May 2012, Pronko, Eric wrote:

I am using gmetad 3.3.0 and a recent version of gweb (3.2 or 3.3).

I would like to have some additional reports appear at the top of the report 
page for an individual host (optimally
below the “Host Overview” button and above the name of the host).  I have 
reviewed the code in host_view.tpl and it
looks like I could use optional_reports for this.  I tried setting this in 
conf/default.json:



{

        "included_reports": 
["load_report","mem_report","cpu_report","network_report"]

        "optional_reports": 
["load_report","mem_report","cpu_report","network_report"]

}



It doesn’t do the job, though.  In my cluster_view.tpl I have something similar:



<a href="./graph.php?g=load_report&amp;z=large&amp;{$graph_args}">

<img border=0 ALT="{$cluster} CPU" 
src="./graph.php?g=load_report&amp;z=small&amp;{$graph_args}">

</a>

<a href="./graph.php?g=cpu_report&amp;z=large&amp;{$graph_args}">

<img border=0 ALT="{$cluster} CPU" 
src="./graph.php?g=cpu_report&amp;z=small&amp;{$graph_args}">

</a>

<a href="./graph.php?g=mem_report&amp;z=large&amp;{$graph_args}">

<img border=0 ALT="{$cluster} CPU" 
src="./graph.php?g=mem_report&amp;z=small&amp;{$graph_args}">

</a>

<a href="./graph.php?g=network_report&amp;z=large&amp;{$graph_args}">

<img border=0 ALT="{$cluster} CPU" 
src="./graph.php?g=network_report&amp;z=small&amp;{$graph_args}">

</a>



These work in the cluster view.  In the host view, it shows graphs, but for the 
entire grid rather than just the
individual host.  maybe I need to set something else instead of graph_args.



Any advice/pointers greatly appreciated!



Eric




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to