mrtg mrtgdepot.com
mrtgdepot home
scripts in cacti
interface traff in cacti
snmp OID in cacti

MRTG and Internet Site Reporting

Using MRTG to graph host level information and use it as a troubleshooting tool for Monitoring Staff


What is MRTG and where can I get it?

The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing GIF images which provide a LIVE visual representation of this traffic. Check http://www.ee.ethz.ch/sta/ for an example. MRTG is based on Perl and C and works under UNIX and Windows NT. MRTG is being successfully used on many sites around the net. Check the MRTG-Site-Map.


Maybe some handy scripts for your or your noc.



Ubuntu CPU OIDs
Number of Users
Load
PIX mem OIDs
Disk Partitions
Traffic
TCP/UDP
kevin/root count
Round Trip Ping
Total processes running
main1 main2 disk_partitions root_nobody_proc


Monitoring Scripts  (and new stuff)

The monitoring scripts can be run on the local machine and stored on an NFS share, or some other directory. Hourly or whatever is desired, the data can be ftp'd, or pulled by a monitoring server, that runs mrtg and generates the graphs, rather than run locally.

9.10.00 *Some information discovered by Mike Glaser who is using a Linux box as the collector, and is monitoring a variety of servers, of which there is an HPUX box. He had to compile tcp wrappers on the HPUX box (uncommented one line in the make file for HPUX) and that worked. Upon editing the inetd.conf file, the Linux box was then able to connect via netcat and pull the HPUX mrtg data. Thanks Mike.
Some other tcpd/HPUX links:
Stanford   Second Stanford Loc.   Info on TCPD

10.1.00 Added a script that gets data from wget on page load times and size. Can be used to also show latency or load on a webserver, via the load times of the page. Would really just show a correlation with other facts. Also capturing size of the file, can possibly show a hacked size as the index.html page would change size.

11.08.00 Added a modified "load script" provided by Schene Groom, it is a better script for capturing low load values, even as low as .02    Schene's script is here.   He is using this on a freeBSD machine. Thanks Schene.

The Scripts

Ubuntu CPU OIDs
Num of Users
Load
PIX mem OIDs
Disk Partitions
Traffic
TCP/UDP
kevin/root count
ICMP
Round Trip Ping
Total Processes


Using the scripts in the mrtg.cfg file

How to call the scripts from the mrtg.cfg file.
Good Sources for Scripts to use with MRTG

MRTG Site Companion Sites
Ping Probe Script
Scripts to capture data from hosts w/ dynamic IP's
Monitoring Scripts on a unix firewall running IP Chains
MRTG Collector Machine
Qmail scripts for MRTG
Load and Swap Space scripts
Monitoring a Livingston Portmaster
Unofficial MRTG faq
Egroups MRTG Board

Some of the Scripts at work on this host
Examples Running Nowupdated 2008



MRTG_main_site

Tobias Oetiker <oetiker@ee.ethz.ch> and Dave Rand <dlr@bungi.com>
[Last Updated: 12/2008]
---------------
Dec 2008 - Fixed running now page.. again!
Jan 2006 - Fixed the running now page
May 2002 - Revised 'examples running now', added traffic graph.
February 2002 - Added page showing four scripts output running on this host.
November 2000 - Added newer load capturing script provided by Schene Groom.
October 2000 - Added web page load times and size script
Sept 2000 - Added hpux monitoring information via Mike Glaser.
August 2000 - Put page up.