Graphing appears delayed?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
oknetman
Posts: 4
Joined: Wed Dec 21, 2011 6:39 am

Graphing appears delayed?

Post by oknetman »

In testing Cacti, I have had issues with setting time zones in PHP so that the graphs have the current and correct time and date. THe fix seemed to be editing the php.ini file and things appear to work.

That said, why does the graphing take six hours to appear?

If the time zone and time on the server is correct, should not the graphs begin to display data after the first 5 minutes?

The logs appear to be collecting data and the rrd files are being updated, just the graphs appear delayed.

Dan
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Graphing appears delayed?

Post by Linegod »

Because data had already entered the graph before you changed the time (I'm guessing it was adjusted to six hours in the past). RRDTool is not going to insert data 'in the past', and you have to wait for it to catch up.

Or you delete the graph and let it start again.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
oknetman
Posts: 4
Joined: Wed Dec 21, 2011 6:39 am

Re: Graphing appears delayed?

Post by oknetman »

Well, that's what I though so I deleted the graphs and it still took 6 hours for the graphing to begin to show up. A good example of the issue I have is in this graph. The date and time period is correct, but the tunnel interface actually dropped at 23:20 not 5:20. That's six hours off.
Attachments
graph_image.png
graph_image.png (19.26 KiB) Viewed 958 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graphing appears delayed?

Post by TheWitness »

Make sure the date.timezone in the php.ini is set correctly and restart apache. On most distributions there are 2 files.
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?
oknetman
Posts: 4
Joined: Wed Dec 21, 2011 6:39 am

Re: Graphing appears delayed?

Post by oknetman »

I check all settings and they are correct. I found the problem was I am running OpenSUSE 12.1 and had the time settings set wrong. In the Time and Date settings the clock was set to "Hardware Clock Set to UTC". As soon as I uncheck it and resynced to the time server the graphs updated instantly. Thanks all.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests