Date and time problem

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

Moderators: Developers, Moderators

Post Reply
dckenming
Posts: 5
Joined: Fri Sep 21, 2007 3:07 am

Date and time problem

Post by dckenming »

Cacti Version 0.8.7
Cacti OS win2K
Using IIS
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.4

Poller Information
Type cmd.php

sorry all for my grammar.
Problem 1,(001a.jpg)
i have a problem about windows date and time
windows date and time have been changed 13/june/2008 by other user.

if i change back my system time to 13/june/2008 before(e.g. 21/may/2008), a poller process will not be work...

but i change system date and time to 13/june/2008 after(e.g. 14/june/2008) .a poller will working.

in this case, how can i change back my system date and time to normal and poller still work?

problem 2 (002a.jpg)
what problem will show this message in cmd on poller everytime?
Attachments
001a.jpg
001a.jpg (265.61 KiB) Viewed 1446 times
002a.jpg
002a.jpg (11.25 KiB) Viewed 1446 times
nate450
Posts: 17
Joined: Mon Mar 13, 2006 1:45 pm
Location: Seattle, WA

Post by nate450 »

If RRDTool updated the files while the time was in the future, then your fairly stuck. RRDTool keeps track of the time that the files were updated and won't update data from the past as far as I know.

Depending on how much pain this causes the easiest thing to do is probably delete(or at least rename/move) all of your RRD files so cacti will create new ones.

Another option might be to dump the RRD files to xml, change the date stamps using a script and re-import them back to their native binary format. See the RRDTool docs for how to export/import.
dckenming
Posts: 5
Joined: Fri Sep 21, 2007 3:07 am

Post by dckenming »

nate450 wrote:If RRDTool updated the files while the time was in the future, then your fairly stuck. RRDTool keeps track of the time that the files were updated and won't update data from the past as far as I know.

Depending on how much pain this causes the easiest thing to do is probably delete(or at least rename/move) all of your RRD files so cacti will create new ones.

Another option might be to dump the RRD files to xml, change the date stamps using a script and re-import them back to their native binary format. See the RRDTool docs for how to export/import.
i tried your option 1 ,remove all rrd files, but it haven't create a new one to me.
only if the date&time change to 13/ june after,it will be create a new one to me.
nate450
Posts: 17
Joined: Mon Mar 13, 2006 1:45 pm
Location: Seattle, WA

Post by nate450 »

try rebuilding the poller cache and see if that helps (under 'system utilities')
dckenming
Posts: 5
Joined: Fri Sep 21, 2007 3:07 am

Post by dckenming »

nate450 wrote:try rebuilding the poller cache and see if that helps (under 'system utilities')
i tried that,but problem still occur when have not change date and time.
Post Reply

Who is online

Users browsing this forum: chonfirex and 0 guests