Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case the UTC ranges are 1453161601 - 1453247999 and  1453766401 - 1453852799. We can also see that the data values are in the range of 3x10e12 (3.0T) and 3.5x10e12 (3.5T)

 

 

Log into prod-cacti01-fra-de.geant.net 

Change to the /tmp directory and export the data to an XML file format.

Run rrdtool dump /opt/cacti/rra/<Required Data File>mx1_lon_uk_traffic_in_20683.rrd >  > /tmp/<Required Data File>.xmlmx1_lon_uk_traffic_in_20683.rrd.xml

Edit the  /tmp/mx1_lon_uk_traffic_in_20683.rrd.xml and find the offending data. Change the values to a more meaningful order of magnitude. Save your changes.

Create a backup of the file you wish to change. 

sudo -u cactiuser mv /opt/cacti/rra/mx1_lon_uk_traffic_in_20683.rrd /opt/cacti/rra/mx1_lon_uk_traffic_in_20683.rrd.bak

 

Recreate the RRD file using the data from the exported XML file. 

sudo -u cactiuser rrdtool restore /tmp/mx1_lon_uk_traffic_in_20683.xml  /opt/cacti/rra/mx1_lon_uk_traffic_in_20683.rrd

We now need to sync this change with the other production instance of Cacti on prod-cacti02-vie-at.geant.net

sudo -u cactiuser scp -i /home/cactiuser/.ssh/id_dsa cactiuser@prod-cacti02-vie-at.geant.net:/opt/cacti/rra/mx1_lon_uk_traffic_in_20683.rrd /opt/cacti/rra/mx1_lon_uk_traffic_in_20683.rrd