[mrtg] Re: MRTG + RRDTool + 14all Problem

Kirk Schneider kschneider at raytheon.com
Thu Jun 26 17:24:25 MEST 2003

I have had this problem with Mandrake LINUX since 8.2 thru 9.1
with mrtg, rrdtool and 14all.

To summarize, mrtg gathers the data fine, rrdtool stores the data
fine and 14all makes the web pages, but no graphs.

Looking at /var/log/httpd/error_log shows this:

[Thu Jun 19 23:12:03 2003] [error] [client] Premature end of script headers: /var/www/cgi-bin/14all.cgi
/usr/bin/perl: relocation error: /usr/lib/perl5/5.6.1/i386-linux//auto/RRDs/RRDs.so: undefined symbol: png_create_write_struct

I have found one message in the archives that points to part a solution,

but the other errors (below) look like a permissions or config problem.

[Thu Jun 19 09:00:14 2003] [error] [client] File does not exist: /var/www/html/var/www/html/admin/mrtg/mrtg-l.gif
[Thu Jun 19 09:00:14 2003] [error] [client] File does not exist: /var/www/html/var/www/html/admin/mrtg/mrtg-m.gif
[Thu Jun 19 09:00:14 2003] [error] [client] File does not exist: /var/www/html/var/www/html/admin/mrtg/mrtg-r.gif

The box said it requires Windows 95 or better so I installed Linux

-------- Original Message --------
Subject: [mrtg] MRTG + RRDTool + 14all Problem
Date: Wed, 25 Jun 2003 19:41:54 -0600
From: bintut at softhome.net
To: mrtg at list.ee.ethz.ch

Hello all,

This is my sixth day that I really can't figure out how to isolate my
problem with my "MRTG + RRDTool + 14all" setup on Mandrake Linux 9.1 and I
decided to post my problem here and hoping for any help.

Below are the packages that are installed in my system:

  - apache-1.3.27-8mdk.i586.rpm
  - perl-5.8.0-19mdk.i586.rpm
  - perl-CGI-2.810-3mdk.i586.rpm
  - perl-GD-2.06-1mdk.i586.rpm
  - mrtg-2.9.27-1mdk.i586.rpm
  - mrtg-contribs-2.9.27-1mdk.i586.rpm
  - rrdtool-1.0.40-2mdk.i586.rpm
  - librrdtool0-1.0.40-2mdk.i586.rpm
  - 14all-1.1.cgi

My MRTG_lib.pm is located at
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi directory and my
RRDs.so is located at
directory.  But I also made a symbolic of my RRDs.so to the
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi directory.

I moved my 14all-1.1.cgi to my /var/www/html/admin/mrtg/ directory and
renamed it as mrtg.cgi. Afterwards, I made it an executable file and made a
symbolic link as index.cgi.

  From /var/www/html/admin/mrtg/ directory, I executed the following commands
from the CLI:

[root at free mrtg]# snmpwalk -c public -v 1 bayantel

[root at free mrtg]# cfgmaker --global 'WorkDir: /var/www/html/admin/mrtg' \
  --global 'Options[_]: bits,growright' --global 'LogFormat: rrdtool' \
  --global 'PathAdd: /usr/bin' \
  --global 'LibAdd:
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/RRDs' \
  --global 'Interval: 5' --global 'ImageDir: /var/www/html/admin/mrtg/images'
  --global 'LogDir: /var/www/html/admin/mrtg/logs' \
  --output /var/www/html/admin/mrtg/mrtg.cfg public at bayantel

[root at free mrtg]# mrtg mrtg.cfg

I also added a one line cron job to run MRTG in every 5 minutes of my
/etc/crontab with the following:

0-59/5 * * * * root /usr/bin/mrtg /var/www/html/admin/mrtg/mrtg.cfg

You can find my mrtg.cfg, 14all-1.1p25.cgi, and /var/log/httpd/error_log at
the following sites respectively:


You can try to visit my problematic MRTG + RRDTool + 14all-1.1p25.cgi setup
at http://free.bir.gov.ph/admin/mrtg/

Any idea?

Thanks in advance.

E-mail: bintut at softhome.net
Tel. No. +63 2 4262172
Mobile No. +63 919 3141254
Yahoo! Messenger ID: bintut

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

More information about the mrtg mailing list