[mrtg] Re: MRTG and RRDTool how to

John Barbieri jbarbieri at metrocastcablevision.com
Thu Sep 15 15:23:59 MEST 2005

Hi there.

I have decided to try and convert from MRTG to RRDtool, following that
site and the one written by Tobi.

I am running a freebsd 4.11 system, so rrdtool is installed as a
package. In my config file, I put:

LogFormat: rrdtool
PathAdd: /usr/local/bin
LibAdd: /usr/local/lib/perl5/site_perl/5.8.5/mach/

the executable is located in /usr/local/bin  and the RRDs.pm file is
located in /usr/local/lib/perl5/site_perl/5.8.5/mach/  hence the reasons
for those paths.

I then tried running MRTG the normal way (/usr/local/bin/mrtg
config-file.cfg) but it errors out:

[jbarbieri at mrtg]/usr/local/etc/mrtg2#: /usr/local/bin/mrtg config-file.cfg
rrdtool in free(): warning: page is already free
ERROR: Can only restore version >= 2 (Not 0001). Dump your old rrd using
a current rrdtool dump.
ERROR: Cannot update
/usr/local/www/data/mrtg2/belmont-ur1/65.175.xxx.xx_17.rrd with
'1126790421:406572352040418:477264097202426' opening
'/usr/local/www/data/mrtg2/belmont-ur1/65.175.xxx.xx_17.rrd': No such
file or directory
ERROR: Cannot 'last'
/usr/local/www/data/mrtg2/belmont-ur1/65.175.xxx.xx_17.rrd: opening
'/usr/local/www/data/mrtg2/belmont-ur1/65.175.xxx.xx_17.rrd': No such
file or directory
Use of uninitialized value in subroutine entry at /usr/local/bin/mrtg
line 683.
Use of uninitialized value in subroutine entry at /usr/local/bin/mrtg
line 683.
ERROR: Cannot 'fetch'
/usr/local/www/data/mrtg2/belmont-ur1/65.175.xxx.xx_17.rrd: start time:
unparsable time:

It appears that mrtg/rrd is trying to update the .rrd files, but it
hasnt converted them yet, so how is it supposed to update if it doesnt
convert first. Seems like a vicious cycle there :P

I am using:


Any help would be appreciated.




>>>>"Richard F. Hart II" <rhart at cnu.edu> 09/14/05 4:42 PM >>>
>>I am curious if anyone can point me to a guide that will tell me 
>>how to install mrtg and rrdtool together on Linux/Unix platform. 
>>I have run mrtg before, but never with rrdtool nor rateup. I have 
>>searched this listserv, and have been unable to locate such a 
>>tutorial. Any assistance will be appreciated.
>Installing MRTG isn't all that tough.  Check this out for some 
>more information...
>*shameless plug*
>Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
>Archive     http://lists.ee.ethz.ch/mrtg
>FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
>WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the mrtg mailing list