Quantcast
Channel: Zenoss Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 853

Multigraph report Total / Summary patch for zenoss 3.x/4.x

$
0
0

Description:

Multigraph report is very powerfull tool, but it missing one importan feature:

It does not allow to add totals in legend or place stacked graphs for the same datapoints.

 

The patch is fixing the gap and it does not affects original Multigraph functionality, unless you explecitely define that you want to use "Totals",

So after applying patch, your current reports will work as before.

 

Implementation:

A sample report

MGraph3.jpeg

The report have usual multigraph report components as items collection, graph definition and graph groups

 

The patch introduces a 'command' (or say a tag ) that can be used in "Graph Custom Definition"

MGraph1.jpeg

So when you put #NEWSTYLE at the beginning of  "Graph Custom Definition", a variables with Total_<rrd_datapoint> name automatically generated and the variables sum all values for all datapoint with the same name  across devices, so you can graph or print it on the graph.

It's required to define  RRD commands explicitly to draw or show  the 'Totals' variables as it not shown/drawn by #NEWSTYLE tag.

Assuming it's not required to draw DataPoints for each item, set Line Type to Not Drawn.

Also #NEWSTYLE arranges all DataPoints by the name, so you have <DataPoint1>,<DataPoint2> ,<DataPointN> order for all items on the graph, instead of default order: <DataPoint1>,<DataPoint2> for Item1, <DataPoint1>,<DataPoint2> for Item2 , etc

 

Here is the result of the report described above:

MGraph2.jpeg

 

In the order to obtain the described functionality it's required to patch zenoss.

1. download and unzip the attached file

 

2. apply the patch as follow( under zenoss account, assuming you have zenoss at /opt/zenoss path ):

patch /opt/zenoss/Products/ZenModel/MultiGraphReport.py < zenoss-MultiGraphReport.py.patch

 

3. restart zope:

zopectl restart


Viewing all articles
Browse latest Browse all 853

Trending Articles