Cacti Showing wrong time

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

Moderators: Developers, Moderators

Post Reply
petergigengack
Posts: 7
Joined: Tue Dec 18, 2007 10:57 am

Cacti Showing wrong time

Post by petergigengack »

Hi guys,

I have tried to search through everything regarding cacti showing the wrong time.

Basically I live in Perth (australia) so the clock is set correctly to UTC +8 (WST). System time is correct, however the Graphs and the preset to view the time area are all behind exactly 8 hours.

I know that this is a problem somewhere on the system however i cannot find anywhere cacti gets its time from.

I have setup another VMmachine, imported over the mySQL database and rrd files and the time is fine. It also has clock setup to UTC+8.

Both machines running on the same VMHOST, Ubuntu 7.10, cacti 0.8.7b installed using apt-get.

Anyone got any ideas?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I seem to have seen this before. Can remember what it was though. Possibly PHP time. This is where we get that information relative to the date. So, when you turn logging to max, PHP complains that using the "data()" function is not sufficient without using the time zone setting.

I think you are having that issue. If you Google to it, you might find the work around either in your PHP.INI file or some setting.

However, here is a good post from PHP.NET

http://us3.php.net/manual/en/function.date.php

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?
petergigengack
Posts: 7
Joined: Tue Dec 18, 2007 10:57 am

Post by petergigengack »

Ok

here is the progress.

i have been able to update the PHP config so that it has the correct timezone, however now the graphs are still not displaying the correct time.

date.timezone =Australia/Perth

I have gone through the process of re-installing RRDTools and still not showing the correct time on the graphs. Is there an RRDtool config file? I have not been able to find one.

Thanks in advance.

Peter
nathangregory.com
Posts: 3
Joined: Sun Feb 01, 2009 10:30 pm

Post by nathangregory.com »

petergigengack wrote:Ok

here is the progress.

i have been able to update the PHP config so that it has the correct timezone, however now the graphs are still not displaying the correct time.

date.timezone =Australia/Perth

I have gone through the process of re-installing RRDTools and still not showing the correct time on the graphs. Is there an RRDtool config file? I have not been able to find one.

Thanks in advance.

Peter
Hey Peter,
I'm in Brisbane and having a similar problem.
Fresh install of CactiEZ into vmware.
System clock is showing correctly and the right timezone, however when graphs are showing as one hour in the future.

When I do a "view tech" in cacti, it says the timezone is +11 instead of +10....

Did you make any progress with this?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Did you restart apache after correcting the timezone in PHP's config file?
nathangregory.com
Posts: 3
Joined: Sun Feb 01, 2009 10:30 pm

Post by nathangregory.com »

cigamit wrote:Did you restart apache after correcting the timezone in PHP's config file?
I ended up bouncing the box after changing the timezone in php.ini and it all came good.

It caused a gap in the graphing, but it was just a dev box so nothing to worry about.

Cheers,
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests