[rrd-users] RRDs::graph right axis syntax

Matt Elias m_elias at fastmail.fm
Mon Nov 1 20:25:18 CET 2010


1.
Ubuntu Server 10.10
Perl v5.10.1 for x86_64-linux-gnu-thread-multi
RRDtool 1.4.3
RRDs module - I don't know if it has a separate version number but as 
far as I know it is a Perl only module. So my RRDs::graph commands are 
all in Perl. http://www.mrtg.org/rrdtool/prog/RRDs.en.html

My main concern is that the documentation here, 
http://www.mrtg.org/rrdtool/doc/rrdgraph.en.html does not specify how to 
use the 'Right Y Axis' option from within the RRDs Perl module. Most of 
the other options for example, show [-t|--title string] where -t is used 
within the Perl module and --title string is used from the command line, 
at least that's been my experience so far.

As I said earlier, when I use the '--right-axis-label "Relative 
Humidity"' option with 'rrdtool graph' from the command line, I get the 
expected results. But I can not find any reference in any documentation 
for how to implement that same option from within the RRDs Perl module. 
The following code works from within Perl. How do I add the 
right-axis-label option to it?

RRDs::graph "test.png",
	"-s 24hr",
	"-t Outdoor Temperature/Humidity: 24hr",
	"-h 120", "-w 830",
	"-a", "PNG",
	"-v deg C",
	"DEF:OutTemp=$rrd/Weather.rrd:OutTemp:AVERAGE",
	"DEF:OutHum=$rrd/Weather.rrd:OutHum:AVERAGE",
	"CDEF:nan=OutTemp,UN,INF,UNKN,IF",
	"AREA:nan#FF000070",
	"LINE1:OutTempM#32CD32:Temperature C",
	"GPRINT:OutTemp:MAX:Max\\: %5.1lf %s",
	"GPRINT:OutTemp:AVERAGE:Avg\\: %5.1lf %s",
	"GPRINT:OutTemp:MIN:Min\\: %5.1lf %s",
	"GPRINT:OutTemp:LAST:Last\\: %5.1lf %s\\l",
	"LINE1:OutHum#4169E1:Humidity %     ",
	"GPRINT:OutHum:MAX:Max\\: %5.1lf %s",
	"GPRINT:OutHum:AVERAGE:Avg\\: %5.1lf %s",
	"GPRINT:OutHum:MIN:Min\\: %5.1lf %s",
	"GPRINT:OutHum:LAST:Last\\: %5.1lf %s\\l";

Matt

On 11/1/2010 1:48 PM, Steve Shipway wrote:
> In order to help you, it would be good if you could post --
> 1. which version of RRDTool you are using, and are you using it from command line or from C, Perl, Python, etc etc
> 2. What is the exact command you are giving that is not working, and
> 3. how it s not working -- for example, attaching the image, or saying 'everything as expected but second y axis missing'.
>
> It is possible that you're using an old version that doesnt support it, or you're using the option incorrectly, or you're expecting something to happen which is not supposed to...
>
> Steve
>
> Steve Shipway
> University of Auckland ITS
> UNIX Systems Design Lead
> s.shipway at auckland.ac.nz
> Ph: +64 9 373 7599 ext 86487
>
>
> ________________________________________
> From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] on behalf of Matt Elias [m_elias at fastmail.fm]
> Sent: Tuesday, 2 November 2010 4:48 a.m.
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] RRDs::graph right axis syntax
>
> I'm quite new at using rrdtool and the RRDs perl module, I have also
> read through a lot of documentation and searched the interwebs but I can
> not find how to specify the right axis scale and label from within the
> RRDs module. '--right-axis-label' does not work, only works when using
> 'rrdtool graph' from the command line. The documentation doesn't seem to
> specify a single letter argument for this feature.
>
> thanks for your time
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list