1

Is there a way to dump and update rrd file in memory. I know we can dump it as xml file and then read + update + restore it back as rrd. But this is not an efficient way for me as i may have to update/correct large amount of "old data" I refer this discussion

Its documentation pages talks about deamon address as a paramete, can i use this to udpate rrd data in memory ? How Do i read data from deamon ?

 rrdtool dump --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd

Thanks

Community
  • 1
  • 1
Sumit Purohit
  • 168
  • 2
  • 12

1 Answers1

3

You can dump/restore via set of pipes, modifying the data using a filter program ...

rrdtool dump old.rrd - | filter | rrdtool restore - new.rrd

If you are intent on actually having the dumped version around, you could also dump to a tmpfs partition.

Tobi Oetiker
  • 5,167
  • 2
  • 17
  • 23