Hi,

I'm working on getting ganglia to display correct units for one
custom graph. One of the first tries was to give some extra option
to rrdtools.

When using php-graphs, this is done via $rrdtool_graph[ 'extras' ],
but there is nothing for json graphs.

That simple patch (against 3.4.2) should fix that:

--- ganglia/graph.php.orig      2012-07-17 16:25:37.000000000 +0200
+++ ganglia/graph.php   2012-07-18 10:44:45.000000000 +0200
@@ -28,6 +28,7 @@
         sanitize( $graph_config[ 'vertical_label' ] );
    }

+   $rrdtool_graph[ 'extras' ] = $graph_config[ 'extras' ];
    $rrdtool_graph['lower-limit'] = '0';

    if( isset($graph_config['height_adjustment']) ) {

Jochen



------------------------------------------------------------------------------
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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to