MRTG graph problems

I've got MRTG setup on a CentOS 5.3 32-bit machine running in Virtual PC 2007 on a Windows XP SP3 box.  

I noticed that the time for my graphs was incorrect, and the time on my CentOS virtual machine was also incorrect. To correct time I used hwclock to set the time to current time.  Now my MRTG 5 minute avg graphs are blurry, and some are not returning any data at all.  I rebooted the machine, remade the mrtg.cfg and the index.html files, but I still have the problem.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

ajay_mhasalConnect With a Mentor Commented:

You need to delete files from your output directory of MRTG and regenerate those using indexmaker and mrtg command.
sharkbot221984Author Commented:
Thank you ajay, I removed all the device files from the working directory and ran indexmaker to recreate them, I have un-blurry graphs now.

Already I can see the time drift on my box, it was set correctly a few hours ago, no it is almost 2 hours ahead.  Any idea?  Seems that this may be an issue with it being virtual.
deepak_iqConnect With a Mentor Commented:

What is the present /etc/ntp.conf configuration? Have you mentined the ntp servers ip details?If not,kindly add the ip in the configuration file.

Is ntp service running on the server?
Check by:
#/etc/init.d/ntpd status

If not running,run it:
#/etc/init.d/ntpd start

To check the status then:
#ntpq -p

Check for any ntp related errors in /var/log/messages.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.


Now set the time as follows

# date mmddhhmm  

Above format is (mm=month, dd=date, hh=hours, mm=minutes)

Now use following command

# hwclock --systohc

I hope this will work for you!
sharkbot221984Author Commented:
Thanks guys, ntp was not turned on, I turned it on and set the date again.  The ntp.conf file I assume is default?  It is using the public pool servers.  I will monitor to see if it stays on track now.
sharkbot221984Author Commented:
The time has drifted again still.  It was correct as of my last post, and now as of this post it is 4 hours ahead.
sharkbot221984Author Commented:
Thank you for your help.  I ended up setting up Sun Virtual Box instead of MS Virtual PC, and re-setting up my MRTG server on there.  Time has not drifted at all.
All Courses

From novice to tech pro — start learning today.