HOWTO: Install MRTG (FULLY AUTOMATED) 2.12.2

Thanks for the howto but there is a small problem :(

Code:
Creating necessary directories and preparing for installation...
Preparations complete...
Downloading the most recent MRTG and installing it...
--23:47:28--  [url]http://people.ee.ethz.ch/%7Eoetiker/webtools/mrtg/pub/mrtg.tar.gz[/url]
           => `mrtg.tar.gz'
[b]
Resolving people.ee.ethz.ch... done.
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
23:47:28 ERROR 403: Forbidden.

tar (child): mrtg.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors[/b]
./install.mrtg.sh: line 43: cd: mrtg*: No such file or directory
./install.mrtg.sh: line 44: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
MRTG has been installed...
 
It still does not work :(

Code:
# wget [url]http://bahrain.web.com/install.mrtg.sh[/url]
--08:08:15--  [url]http://bahrain.web.com/install.mrtg.sh[/url]
           => `install.mrtg.sh.3'
Resolving bahrain.web.com... done.
Connecting to bahrain.web.com[72.36.197.242]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,111 [application/x-sh]

100%[=====================================================================================================================================>] 2,111          2.01M/s    ETA 00:00

08:08:18 (2.01 MB/s) - `install.mrtg.sh.3' saved [2111/2111]


# chmod +x install.mrtg.sh


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


Checking for previous MRTG installation...
The directory /var/www/html/mrtg does not exist. I will create it...
Creating necessary directories and preparing for installation...
Preparations complete...
Downloading the most recent MRTG and installing it...
--08:02:07--  [url]http://people.ee.ethz.ch/%7Eoetiker/webtools/mrtg/pub/mrtg.tar.gz[/url]
           => `mrtg.tar.gz'
Resolving people.ee.ethz.ch... done.
[b]
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
08:02:07 ERROR 403: Forbidden.

tar (child): mrtg.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
./install.mrtg.sh: line 43: cd: mrtg*: No such file or directory
./install.mrtg.sh: line 44: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
[/b]
MRTG has been installed...
Updating MRTG config and template...
--08:02:07--  [url]http://www.serveio.com/da/mrtgcfg.tar.gz[/url]
           => `mrtgcfg.tar.gz'
Resolving [url]www.serveio.com...[/url] done.
Connecting to [url]www.serveio.com[/url][69.9.34.242]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,056 [application/x-gzip]

100%[=====================================================================================================================================>] 2,056          1.96M/s    ETA 00:00

08:02:08 (1.96 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!


# env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
 
you need to delete old file
Code:
rm install.mrtg.sh

run dir if you have more then one delete
Code:
rm install.mrtg.*

then run install again ;)
 
Hi,

Install script works great on centos 4.1 and 4.2.

Why does the load average comes in 10E-2 format?

How to chance that?

Greetz,

Franky
 
HOW TO : set your System Information

edit file
Code:
nano -w /var/www/html/mrtg/core/mrtg.cfg

find MaxBytes[load] and set what you need

find MaxBytes[cpu] and set what you need

find MaxBytes[memory] and set what you need

Save
END

all in Bytes




Wael
 
I tried to install it twice and I"m getting the same error resolveit got as well?

Seems like it's erroring out on getting the tar.gz files due to a redirect that makes wget fail?

Using CentOS 4.x as well.
 
Last edited:
[root@server ~]# wget http://www.web4host.net/tools/install.mrtg.sh
--03:17:29-- http://www.web4host.net/tools/install.mrtg.sh
=> `install.mrtg.sh.2'
Resolving www.web4host.net... 72.21.43.114
Connecting to www.web4host.net|72.21.43.114|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,075 (2.0K) [application/x-sh]

100%[====================================>] 2,075 --.--K/s

03:17:29 (98.94 MB/s) - `install.mrtg.sh' saved [2075/2075]


work fine
Resolving www.web4host.net... 72.21.43.114
 
Back
Top