I'm attempting to read "historical" data from a text file and store in rrdtool
to graph later.
I have created a new (empty) rrd database with
$ rrdtool create monitor_db.rrd --step 900 DS:col1:GAUGE:900:0:1000 DS:col2:GAUGE:3600:0:1000 RRA:MAX:0.5:1:1500
Then I attempt to update the database but I get an error
$ rrdtool update monitor_db.rrd --template col1:col2 1404249680:2:3
ERROR: monitor_db.rrd: illegal attempt to update using time 1404249680 when last update time is 1422146997 (minimum one second step)
The timestamp that rrdtool
clains is the last update time, 1422146997
, is now and I'm trying to insert data from roughly half a year ago.
I understand that you have to insert data in chronological order to rrdtool
, but the database should be empty since I have tried removing it and re-creating it.