HOWTO: Install MRTG (FULLY AUTOMATED)

Hy,

I dont resolve this problem :(

I`m waiting for an answer /sugetion

Eduard.
 
Last edited:
Hi,

I solved this issue.

Here's my solution

locate libgd.so.2.0.0 libgd.so and libgd.so.2

unlink /usr/lib/libgd.so

unlnk /usr/lib/libgd.so.2

cd /usr/local/updatescript/

update.script MRTG

Regards,
 
Hello,

Tnx for answer, this don solve my problem :(,

I will try somefing else if i have an idear.

Tnx.

Eduard.
 
My installation was completed but i am not sure whether it was installed. Anyway i visited the URL and all i see is the file listings and a file named core shown as a bomb. Anyway this is the message generated when i was trying to install.

Please advice. The server is running on a fedora core 3.

Update complete!
Adding MRTG to /etc/crontab...
Executing MRTG for the first time (you may see some warnings)...
./install.mrtg.sh: line 64: /usr/local/mrtg-2/bin/mrtg: No such file or directory
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...
 
My installation was completed but i am not sure whether it was installed. Anyway i visited the URL and all i see is the file listings and a file named core shown as a bomb. Anyway this is the message generated when i was trying to install.

Please advice. The server is running on a fedora core 3.

Update complete!
Adding MRTG to /etc/crontab...
Executing MRTG for the first time (you may see some warnings)...
./install.mrtg.sh: line 64: /usr/local/mrtg-2/bin/mrtg: No such file or directory
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...

run:

./update.script CLEAN


It is likely that you do not have a recent/updated 'update.script' file and you are missing a path.
once you get the lastest and greatest, run the install again.
 
Those that want a nice working solution... without the hassle of configuring snmp and mrtg may wish to look at collectd.

It's very neat and supports a whole range of options (It produced rrdgraphs that you can do with what you like).
 
run:

./update.script CLEAN


It is likely that you do not have a recent/updated 'update.script' file and you are missing a path.
once you get the lastest and greatest, run the install again.

How do i run the script? I am a complete noob at this...
 
damn... i still see a blank page

http://202.73.56.231/mrtg/

Anyone please help, i am not some experts here, please give me the commands to fix this.. i need a system info :(

[root@ns1 html]# ./install.mrtg.sh
MRTG Installer 1.0 ---------------------
By: Matt Savona (www.serveio.com)
----------------------------------------


Checking for previous MRTG installation...
The directory /var/www/html/mrtg exists, but there are no files. This is okay...
Creating necessary directories and preparing for installation...
Preparations complete...
Downloading the most recent MRTG and installing it...
--07:39:52-- http://oss.oetiker.ch/mrtg/pub/mrtg.tar.gz
Resolving oss.oetiker.ch... 213.144.138.195
Connecting to oss.oetiker.ch|213.144.138.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1078423 (1.0M) [application/x-tar]
Saving to: `mrtg.tar.gz'

100%[=======================================>] 1,078,423 62.3K/s in 15s

07:40:08 (71.8 KB/s) - `mrtg.tar.gz' saved [1078423/1078423]

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no

** Ooops, one of many bad things happened:

a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.

b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.

c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.

d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...

Consider following the instructions in doc/mrtg-unix-guide.txt
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
MRTG has been installed...
Updating MRTG config and template...
--07:40:11-- http://www502.hostpc.com/mrtgcfg.tar.gz
Resolving www502.hostpc.com... 208.115.37.172
Connecting to www502.hostpc.com|208.115.37.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2056 (2.0K) [application/x-gzip]
Saving to: `mrtgcfg.tar.gz'

100%[=======================================>] 2,056 --.-K/s in 0.001s

07:40:12 (3.17 MB/s) - `mrtgcfg.tar.gz' saved [2056/2056]

Update complete!
Adding MRTG to /etc/crontab...
Executing MRTG for the first time (you may see some warnings)...
./install.mrtg.sh: line 64: /usr/local/mrtg-2/bin/mrtg: No such file or directory
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...
Installation of MRTG complete!
 
Last edited:
serveio.com seems to be down, and I just (accidentally) deleted my mrtg.conf, has anyone http://www.serveio.com/da/mrtgcfg.tar.gz ? :(

You just happened to hit it when we were experiencing an issue with named. Files are back up.

congkai:

You see a blank page because MRTG did not build. The configure failed because you either don't have GD installed or you don't have the required gd.h header file. If you install from RPM, you should only need gd and gd-devel packages.
 
I'm having the same problem as congkai.

I'm getting the same output as he is above, I'm using debian 4.0

I've install the GD libraries and libgd-dev, re ran the mrtg script.. still no go :confused:
 
nevermind, found that it was looking in /usr/local/lib, changed it to /usr/lib and installed fine.
 
Yeah, sorry. This script tries to configure mrtg looking for gd libs in /usr/local/lib - and that's hard coded. At the time this thing was written, it was intended for RedHat based machines (my own) and I expected them to be there.
 
Thanks for the guide it worked perfectly under Centos 5 I just had to add env LANG=C
 
Back
Top