[rrd-users] graph PRINT to perl variables

ambipur aolah76 at freemail.hu
Mon May 6 07:29:03 CEST 2013


Hi everybody,

I am am working on a perl script including the following:

RRDs::graph "/dev/null/dummy.png",
	"-s -1$_[1]",
	"DEF:mem=$rrd/$_[0].rrd:mem:AVERAGE",
	"DEF:kernel=$rrd/$_[0].rrd:kernel:AVERAGE",
	"PRINT:mem:MAX: %5.3lf %3bytes",
	"PRINT:mem:MIN:      %5.1lf %sbytes",
	"PRINT:mem:AVERAGE:      %5.3lf %sbytes",
	"PRINT:mem:LAST:     %5.3lf %sbytes",

	"PRINT:kernel:MAX:             %5.1lf %sbytes",
	"PRINT:kernel:MIN:      %5.1lf %sbytes",
	"PRINT:kernel:AVERAGE:      %5.1lf %Sbytes",
	"PRINT:kernel:LAST:     %5.1lf %Sbytes";

I would like to transfer the value of the 8 PRINT lines to 8 perl variables.
How is it possible? Thanks in advance!



--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/graph-PRINT-to-perl-variables-tp7580992.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list