loopforever
Verified User
Hi Guys,
** June 6th. 2008: MRTG tarball location has been updated to reflect it's new home on the official MRTG site. Also worth noting, I haven't updated this thread since 2005. Jeeze...you guys have been using this thing for a while!
With the addition of a new server I found myself in the position of installing MRTG again. Chris (ProWebUK) wrote up a nice guide for installing MRTG manually - but I found the config to be lacking in some of the features I needed to monitor.
So, I grabbed the mrtg.cfg from an old CPanel rpm and modified it slightly to work on a DA machine. The script I wrote will automatically download and install the latest version of MRTG and apply a very nice config for your viewing pleasure. Please note...I take ABSOLUTELY no credit for the mrtg.cfg included - I simply made a small modification and wrote an installer for the whole process.
The installer will check to see if you have anything installed in /var/www/html/mrtg - if you have mrtg installed in another directory, you should remove it first. If you are already running MRTG, you need to make sure you delete it and its crontab entry before continuing with the installer.
Guide:
When the process is done MRTG will be installed in:
/var/www/html/mrtg
and can be viewed at:
http://your.hostname.com/mrtg
You can see the output of my install at:
http://loop.serveio.com/mrtg
Enjoy!
Confirmed Supported OSs:
RedHat 9
Fedora Core 3
Fedora Core 2
Debian 3.0
CentOS 3.4
CentOS 4.0
If this installer works properly for you, please let me know what OS you used so I can update this list!
Uninstall Instructions
For those of you that want to uninstall MRTG (assuming you used this installer), please follow these steps:
** June 6th. 2008: MRTG tarball location has been updated to reflect it's new home on the official MRTG site. Also worth noting, I haven't updated this thread since 2005. Jeeze...you guys have been using this thing for a while!
With the addition of a new server I found myself in the position of installing MRTG again. Chris (ProWebUK) wrote up a nice guide for installing MRTG manually - but I found the config to be lacking in some of the features I needed to monitor.
So, I grabbed the mrtg.cfg from an old CPanel rpm and modified it slightly to work on a DA machine. The script I wrote will automatically download and install the latest version of MRTG and apply a very nice config for your viewing pleasure. Please note...I take ABSOLUTELY no credit for the mrtg.cfg included - I simply made a small modification and wrote an installer for the whole process.
The installer will check to see if you have anything installed in /var/www/html/mrtg - if you have mrtg installed in another directory, you should remove it first. If you are already running MRTG, you need to make sure you delete it and its crontab entry before continuing with the installer.
Guide:
Code:
wget [url]http://serveio.com/da/install.mrtg.sh[/url]
chmod +x install.mrtg.sh
./install.mrtg.sh
When the process is done MRTG will be installed in:
/var/www/html/mrtg
and can be viewed at:
http://your.hostname.com/mrtg
You can see the output of my install at:
http://loop.serveio.com/mrtg
Enjoy!
Confirmed Supported OSs:
RedHat 9
Fedora Core 3
Fedora Core 2
Debian 3.0
CentOS 3.4
CentOS 4.0
If this installer works properly for you, please let me know what OS you used so I can update this list!
Uninstall Instructions
For those of you that want to uninstall MRTG (assuming you used this installer), please follow these steps:
- Open /etc/crontab and remove the line that reads:
*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg - rm -rf /usr/local/mrtg-2/
- rm -rf /var/www/html/mrtg/
Last edited: