• Welcome to The Network People Support Forums. Please login or sign up.

Problem installing rrdutil (rrdtool) (can't create graphs)

Started by fendorDK, June 29, 2005, 02:08:31 PM

Previous topic - Next topic

fendorDK

June 29, 2005, 02:08:31 PM Last Edit: September 19, 2008, 10:08:09 PM by fendorDK
Hi.

I have just installed toaster 4.08 on a fresh install of freebsd 5.4 p2
Everything is working fine.
except rrdutil.

First, when I did toaster_setup.pl -s rrdutil it finished with:

cd perl-shared && make pure_install
Installing /usr/local/lib/perl5/site_perl/5.8.7/mach/auto/RRDs/RRDs.so
Installing /usr/local/lib/perl5/site_perl/5.8.7/mach/auto/RRDs/RRDs.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib/perl5/site_perl/5.8.7/mach/RRDs.pm
Installing /usr/local/lib/perl5/site_perl/5.8.7/mach/ntmake.pl
Installing /usr/local/lib/perl5/5.8.7/man/man3/RRDs.3
Writing /usr/local/lib/perl5/site_perl/5.8.7/mach/auto/RRDs/.packlist

############################################################################
# See /usr/local/share/examples/rrdtool for some demonstration code        #
############################################################################
===>   Compressing manual pages for rrdtool-1.0.49
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for rrdtool-1.0.49
===>  Cleaning for libtool-1.5.18
===>  Cleaning for perl-5.8.7
===>  Cleaning for rrdtool-1.0.49
port_install: rrdtool10            FAILED
FATAL FAILURE: Install of rrdtool10 failed. Please fix and try again.
at /usr/local/lib/perl5/site_perl/5.8.7/Mail/Toaster/Setup.pm line 3406


It says that it fails, but it also looks a 'little' like it finished.
I don't know what to do now...


I tried editing rrdutil.conf so that it match my system and run rrdutil.cgi -a update a couple of times.
This part works and the *.rrd gets created fine.
Then trying to view the rrdutil web page or running rrdutil.cgi -a graph gives me the following messages:

-- SNIP: --

ERROR generating /usr/local/rrdutil/html/localhost/mail_rbl_blocks.png: unknown option '--font=LEGEND:7:/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf '
ERROR generating /usr/local/rrdutil/html/localhost/mail_rbl_blocks-2.png: unknown option '--font=LEGEND:7:/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf '

-- :END SNIP --

it says that error for all the items.
The directory /usr/local/share/rrdtool does not exist.
So I guess the installation was not finished after all  :)

What can I do now?

I haven't installed anything 'my own way' I have just gone through the installation.
Before installation I (of course  :) ) updated my ports. But maybe there's a problem with the port (broken)? Im taking a wild guess on this because the last line was around "port_install: rrdtool10 FAILED".

I haven't really got any idea of what I should do to fix that installation of rrdutil. Any suggestions are most welcome.

/fendor

matt

It looks like you got rrdutil installed correctly on the first build. The errors you report are due to to differences in rrdtool, edit rrdtool_version = 1 in rrdutil.conf since mail::toaster installed rrdtool 1.0.x.  If you installed rrdutil 1.2.x, then need to use rrdutil_version = 2.

Matt

fendorDK

July 20, 2005, 11:09:27 AM #2 Last Edit: September 19, 2008, 10:16:18 PM by fendorDK
Hi.

Yes that makes sense. I think that was my problem.
I can't tell exactly because tried out some different things.

I installed RRDutil as it says on the rrdutil page:
http://www.tnpi.biz/internet/manage/rrdutil.shtml

Then here is what I did to make it work.

First:
Install net-snmp, Net::SNMP, and rrdtool.
Download the latest RRDUtil. and etc.. (as explained on the page)

Then since I didn't install via the toaster-script I just copied the snmpd.conf from RRDutil-2.2/contrib/ to /usr/local/share/snmp/

Then I configured rrdutil.conf and snmpd.conf to suit my needs. And so on edit httpd.conf etc. All is explained nicely on the aforementioned page.

And YES with the right vesions of the programs configured in the confs it works. Now I have nice graphs. It is very nice.

I just wanted to do this little post so if anyone else might have the same problem could get en idea of how to go on.
(remember to start or restart the snmpd daemon)

It's a great mailserver, keep up the good work.

/fendor