HOWTO: Install MRTG (FULLY AUTOMATED)

Worked great for me thanks, but is there a way to monitor more stuff, such as apache, bind, mysql, exim etc...

Thanks
 
miltongoh said:
This is what I see rather than the graphs.
That's all doable with custom configuration.

Additionally, if you're using MRTG on one server to monitor multiple servers you'll need to run programs on the other servers for MRTG to contact for the information.

Jeff
 
Just installed this on my new DA server running CentOS 4.4. So far, seems to work okay. However, I had to change the line in the crontab file to this:

Code:
*/5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

Thanks for the script. :)
 
help for run MRTG

Dear
my system is rh-9..i install mrtg as u say..but it can't work..it gives a massage when i run ./install-sh file
please give me a solution how can i install this

MRTG Installer 1.0 ---------------------
By: Matt Savona (www.serveio.com)
----------------------------------------


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...
--07:01:13-- http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg.tar.gz
=> `mrtg.tar.gz'
Resolving people.ee.ethz.ch... done.
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://people.ee.ethz.ch/ex-staff/oetiker [following]
--07:01:15-- http://people.ee.ethz.ch/ex-staff/oetiker
=> `oetiker'
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://people.ee.ethz.ch/ex-staff/oetiker/ [following]
--07:01:16-- http://people.ee.ethz.ch/ex-staff/oetiker/
=> `index.html.1'
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 509 [text/html]

100%[====================================>] 509 19.88K/s ETA 00:00

07:01:18 (19.88 KB/s) - `index.html.1' saved [509/509]

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.
MRTG has been installed...
Updating MRTG config and template...
--07:01:18-- http://www.serveio.com/da/mrtgcfg.tar.gz
=> `mrtgcfg.tar.gz'
Resolving www.serveio.com... done.
Connecting to www.serveio.com[69.9.34.242]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,056 [application/x-gzip]

100%[====================================>] 2,056 83.66K/s ETA 00:00

07:01:19 (83.66 KB/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!
 
hi there

i have i little problem with mrtg on centOS 4.4 after install ...in /var/www/html/mrtg it's a folder "core" and in it 2 files mrtg.cfg and system; when i accessing http://myIPaddress/mrtg it apears to me { Forbidden - you don't have permission to access /mrtg on this server Apache/2.0.52 (CentOS) Server at myIPaddress Port 80 } i was logged on root when i've done instalation and when accessing address still root.
I'm a little new in this os a few advices could help much (p.s. srry for my english i'm from Romania)
 
hi, ive isntalled mrtg on debian 3.1, work great but only cpu page have no graphic images... any idea?

And...

i think mrtg.tar.gz has been moved...

Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://people.ee.ethz.ch/ex-staff/oetiker/ [following]
--19:19:05-- http://people.ee.ethz.ch/ex-staff/oetiker/
=> `index.html'
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 509 [text/html]

100%[====================================>] 509 --.--K/s

19:19:06 (1.67 MB/s) - `index.html' saved [509/509]

tar: mrtg.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
 
yes

i see that too i haven't look on screen during instalation but you have absolutly right that thing you post it's written on my screen too "moved permanently" if u solve it post what u did pls
 
I've install the mrtg into my server FC4, but in the /var/www/html/mrtg only contain core folder and no any html file. When i go to ip/mrtg, it only show parent directory and no site.

can i have the html file that read mrtg.conf from core folder ?
 
hi there

you didn't find any answer yet? if you find a way to install mrtg please poste what did u do. I had install many times mrtg from diferent tutorials but didn't work like should be
 
I believe you all need to at least run MRTG once before the HTML files will be created. To do that, SSH into your box as root and execute the following command:

Code:
env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

Do this at least twice, because the first time you might get some errors. Also, there is a line in your /etc/crontab file that needs to be altered. When this script is installed, it adds the following line to your crontab file:

Code:
*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

That needs to be changed to this:

Code:
*/5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

I hope this solves the problems you are having with getting MRTG to work.
 
Back
Top