adding new datasource to an existing RRD

前端 未结 3 1919
遥遥无期
遥遥无期 2021-02-09 10:23

I have few 100s of rrds and i want to add 5 extra datasource to all of those rrds.

  1. Is it advisable to do so
  2. Whats the best way and the fastest way to do
3条回答
  •  日久生厌
    2021-02-09 10:37

    use rrddump and rrdrestore.

    just so:

    rrdtool dump my.rrd > file.xml
    
    ./rrdAddDS.pl file.xml newDsName > new_file.xml
    
    rrdtool restore new_file.xml my_new.rrd
    

    you can refer from here: http://osdir.com/ml/db.rrdtool.user/2003-08/msg00115.html

    and here: http://www.docum.org/drupal/sites/default/files/add_ds_to_rrd.pl_.txt

提交回复
热议问题