I recently upgraded to 0.8.7i and ended up with my graph data out of sync. Here are the details:
my date command shows the correct date time and timezone
Code: Select all
php -r "echo date (DATE_RFC822);"
The show tech page on Cacti shows the correct date, time and timezone
The graphs in cacti are labeled with the correct date, time and timezone
The data in cacti is graphing 6 hours in the past
If I dump the rrd to xml I see that the last update field shows seconds since the epoch, but instead of being 6 hours ahead of my localtimezone, it is current to my local timezone. (As if CST was GMT)
The comment next to the last update field shows a date that is 6 hours in the past relative to my local time.
I set up a test rrd file and test cron job to update it every 5 min with time set to 'N'. The dump from the test rrd file shows the correct GMT Unix time stamp in the last update field and a comment beside that shows the correct local time.
I also set the correct timezone in both php.ini files (cli and apache2) and restart apache2
So it would appear that Cacti is not using the N function that I see in rrd.php to set the time for the update. I am unclear on where the time is coming from.
I would appreciate any help in finding why the unix time stamp in in my rrds is -6 relative to GMT and them getting readjusted to an additional -6.