Graphs not working after time snafu

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Jared
Posts: 4
Joined: Wed Jun 15, 2005 8:22 pm
Location: Joplin, MO

Graphs not working after time snafu

Post by Jared »

Earlier this week I noticed that the time on my cacti server was ahead by an hour. I went to corret the time but made a bit of a typo and entered that it was July and not June. A few minutes later I noticed the mistake and corrected the time. The graphs kept working for a few hours after that but then stoped graphing any new data. My guess would be that when I set the date forward a month blank info was written to the graph and it probably wont' start graphing again until mid July. It was the only thing I could think of anyway. :) Equipment that was down while I changed the time still works. Any suggestions on how I might fix this problem would be apreciated.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I'm guessing that if you check your logs and/or run it from the command line, rrd will complain about timestamps.

this MIGHT help:
http://people.ee.ethz.ch/~oetiker/webto ... te.en.html
N|timestamp:value[:value...]
The data used for updating the RRD was acquired at a certain time. This time can either be defined in seconds since 1970-01-01 or by using the letter 'N', in which case the update time is set to be the current time. Negative time values are subtracted from the current time. An AT_STYLE TIME SPECIFICATION (see the rrdfetch documentation) may also be used by delimiting the end of the time specification with the '@' character instead of a ':'. Getting the timing right to the second is especially important when you are working with data-sources of type COUNTER, DERIVE or
Jared
Posts: 4
Joined: Wed Jun 15, 2005 8:22 pm
Location: Joplin, MO

Post by Jared »

That does look to be the case. The time stamp on the graphs are 27 days ahead. Looking at that page I haven't been able to find a way to fix the problem although it does seem like it will start working in 27 days if I can't find a solution so that's something. :D Is it possible to remove the what was posted to the graph between the current date and the date that is shown in the last timestamp without loosing historical data?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Only other option would be to write a script to dump the files to XML and clear all dates from the XML file in the future and then re-import.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Jared
Posts: 4
Joined: Wed Jun 15, 2005 8:22 pm
Location: Joplin, MO

Post by Jared »

Pardon my ignorance but what commands would I use to dump the data to xml and then re-import it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

rrdtool dump rrdfile.rrd > rrdfile.xml

http://people.ee.ethz.ch/~oetiker/webto ... mp.en.html

rrdtool restore rrdfile.xml rrdfile.rrd

http://people.ee.ethz.ch/~oetiker/webto ... re.en.html
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Jared
Posts: 4
Joined: Wed Jun 15, 2005 8:22 pm
Location: Joplin, MO

Post by Jared »

Fantastic :D

Thanks for your help.
gttommy
Posts: 25
Joined: Thu Oct 06, 2005 6:52 pm
Contact:

Post by gttommy »

TheWitness: do you mean search and replace all dates from, say, 2010-10-20 00:00:02 to EST 2005-10-20 00:00:02 EST (the latest date) or 1970-10-21 00:00:02 EST (some old date)?

If one of you guys can show me your script for this it would be great - thanks!

[i'll just recreate the datasources for now...actually, I could be less lazy and look into this myself, sorry...but I'd still like to the see the script if its not too inconvenient]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest