Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using cacti, and I accidentally set my clock set ahead. Cacti updated, storing new data in the rra's - and now that I've fixed my clock, I can't get cacti to update again. What do I do?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You have to erase these invalid future entries. Use rrddump to export your rra to an XML file, then edit the XML file. Set all the future time to NaN, and set the lastupdate to 0. Restore the RRD files using rrdrestore.

Note, however, that depending on how far ahead your clock was set, you may have lost all your data! For a 5 minute average over a day, a clock set ahead 5 days would have wiped it all out! Same story if you accidently set your clock ahead to 2022 - even a 5 year rra will be completely wiped out. This is why it's important to backup your rra's - clock sync is essential.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.