RRDtool - How to change data source name

To change data source name you need to check its current value and then issue rrdtool command.

You can check data source (DS) name using commands:

$ rrdtool info graph_memory.rrd  | grep ^ds | sed 's/.*\[\(.*\)\].*/\1/g' | uniq
memFree
$ rrdtool dump graph_memory.rrd | grep name
  memFree 

To change data source name from memFree to memoryFree issue command:

$ rrdtool tune graph_memory.rrd -r memFree:memoryFree
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a system administrator working for a successful Polish company and a long time supporter of Free Software Foundation and Debian operating system.

Gdansk, Poland https://sleeplessbeastie.eu