The attached patch fixes it for me. Basically instead of trying to store the lengths of the strings, I just recalculate them later on.
The alignment issue is gone and I haven't noticed any bugs introduced into the other graphs.
Search found 8 matches
- Tue Jul 31, 2007 4:43 am
- Forum: Help: General
- Topic: Extra space in my GPRINT
- Replies: 10
- Views: 11428
- Mon Jul 30, 2007 11:31 am
- Forum: Help: General
- Topic: Extra space in my GPRINT
- Replies: 10
- Views: 11428
Okay, found the problem I think, I'll try and explain as best as I can. In lib/rrd.php(rrdtool_function_graph), in the auto padding code, the $text_format_lengths array containing the length of the legend text of each AREA/STACK/LINE[123] graph element is keyed on the 'data_template_rrd_id'. The pro...
- Mon Jul 30, 2007 10:01 am
- Forum: Help: General
- Topic: Extra space in my GPRINT
- Replies: 10
- Views: 11428
Tried flipping auto padding off, now it looks even worse :( Most of the labels now only line up by virtue of them all being the same length strings. I'm guessing the auto pad option is implemented by Cacti rather than RRD itself. If you can point me to the code, I can try and have a look and see if ...
- Wed Jul 25, 2007 4:21 am
- Forum: Help: General
- Topic: Extra space in my GPRINT
- Replies: 10
- Views: 11428
Extra space in my GPRINT
I've created a new graph template for MySQL, and there seems to be a extra space appearing in the GPRINT fields. I've attached a graph with this behaviour. I've gone through the graph template and I can't find an extra space on any of the labels. Here's the debug output from rrdtool: /usr/bin/rrdtoo...
- Wed Jul 25, 2007 4:07 am
- Forum: Help: General
- Topic: Using Data Sources in a CDEF without having to graphing them
- Replies: 2
- Views: 1015
- Thu Jul 19, 2007 3:43 am
- Forum: Help: General
- Topic: Using Data Sources in a CDEF without having to graphing them
- Replies: 2
- Views: 1015
Using Data Sources in a CDEF without having to graphing them
Hi, I want to graph just a CDEF using some Data Sources, this is easy to do with rrdtool directly: ... DEF:a='/var/www/cacti/rra/....rrd':foo:AVERAGE \ DEF:b='/var/www/cacti/rra/....rrd':bar:AVERAGE \ CDEF:c=a,b,+ \ AREA:c#ff0000:'baz' However I can't work out to get cacti to do that without drawing...
- Thu Sep 01, 2005 4:03 am
- Forum: Help: General
- Topic: GPRINT using wrong data source
- Replies: 4
- Views: 1325
- Wed Aug 31, 2005 7:01 am
- Forum: Help: General
- Topic: GPRINT using wrong data source
- Replies: 4
- Views: 1325
GPRINT using wrong data source
I'm trying to create a graph template for displaying temperature readings from my servers. I have five data sources, one for the current reading, and four others for the critical and non-critical upper and lower thresholds. I want to just have the current reading graphed as an AREA, and display the ...