MRTG Setup On ML 7.2
Summary: (Contributed by Colin Tinker)
You will need to have a working web server and Perl installed to run 'mrtg', the 'Multi Router Traffic Grabber'.
To get the rpm go to any mirror site and you will find the rpm in the contrib directory, it is called 'mrtg-2.9.4-2mdk.i586.rpm' (or higher).
Install with
rpm -Uvh mrtg-2.9.4-2mdk.i586.rpm
The install puts an entry to run 'mrtg' in '/etc/crontab'. You can leave this alone and run it from there but I prefer the script below as it can be controlled more easily with
service mrtg start | stop | status
Do not forget to remove the entry or rem it out with a hash in the '/etc/crontab' file. Set the permissions on '/var/www/html/mrtg' with the command:
chown -R mrtg:mrtg mrtg /var/www/html/mrtg
Change the directory to /var/www/html and 'su' to 'root'. Run:
cfgmaker ––output=mrtg.cfg ––subdirs=HOSTNAME public@xxxx.g1gsw.org public@yyyy.g1gsw.org
The
––subdirs=HOSTNAME
––output
Next run:
indexmaker ––output=xxxx.html ––columns=1 ––title="xxxx Network Status" mrtg.cfg
This creates the index page for your site, do not call it 'index' as the manual page has an index.html, I used the domain name. That is the output part of the command,
––title="xxxxx"
––columns=n
The script? goes in /etc/init.d and is called 'mrtg'. Set it as executable (
chmod 755 /etc/init.d/mrtg
Next run:
service mrtg start
to start 'mrtg'.
To make it run at every (re)boot, run:
chkconfig ––add mrtg
Point your browser at 'http://localhost/mrtg/xxxx.html', 'xxxx' is what you called the index page above.
Related Resources:
Revision / Modified: July 31, 2001 / Dec 11, 2000
Author: Colin Tinker
Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!