[rrd-users] extract command line options used to create an RRD file (SOLVED)
a.smith at ukgrid.net
a.smith at ukgrid.net
Tue Jul 6 17:57:31 CEST 2010
Solved, or worked around at least. I got the script working by
changing two things, firstly the data I export to file in the export
step I changed from $create to @create, secondly on the import side I
dumped the use of the perl module RRDs cos I couldnt figure out how to
feed the create options into it properly, and instead put in back
quotes the unix command
`rrdtool create "$dir/$basename" @create`;
The arguements I am passing from @create are like:
--step 300 DS:ups_load_output2:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:500
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:1:26280
RRA:AVERAGE:0.5:288:797 RRA:MIN:0.5:6:700 RRA:MIN:0.5:24:775
RRA:MIN:0.5:1:26280 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:500
RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:1:26280
RRA:MAX:0.5:288:797 RRA:LAST:0.5:6:700 RRA:LAST:0.5:24:775
RRA:LAST:0.5:1:26280 RRA:LAST:0.5:288:797
If anyone can tell me how to correctly pass this to RRDs::create Id be
interested to know, but I do already have a working script :)
thanks Andy.
More information about the rrd-users
mailing list