v0.21 2003/10/31 Josef Wendel (for version history see source file)

Perl script to sum up the traffic of any MRTG monitored device. It generates html output with monthly (example) and daily (example) totals.

Disclaimer

Where to get and how to install it?

Download mrtg_total.pl.

Linux

Windows

You need to have Perl (i.e. from ActiveState) installed and running. mrtg_total.pl has been checked with version 5.6 build 623 on a Windows 2000 system and with version 5.8.0 build 806 on a Windows XP system

How to setup and run it?


An example:

  Workdir: /usr/local/mrtg/web
  Refresh: 300
  Interval: 5
  Forks: 10

  Options[_]: unknaszero

  Target[router.ser2]:        17:[email protected]
  #-#Total[router.ser2]:      Traffic Totals for ROUTER, 2 Mbit E1 to Internet
  #-#Total-Unit[router.ser2]: M
  #-#Total-Ratio[router.ser2]:yes
  MaxBytes[router.ser2]:      250000
  WithPeak[router.ser2]:      ymw
  AbsMax[router.ser2]:        300000
  Title[router.ser2]:         ROUTER.ser2 (Cisco 4500): 2 Mbit E1 to Internet
  PageTop[router.ser2]:       <H2>Traffic Analysis for ROUTER.ser2, 2 Mbit E1 to Internet</H2>

  (...)
  

At last...

If you use PHP, you may be interested in this little tool to collect all mrtg_totalized files of a specific device and get a comprehensive look over the years.

That's all! Enjoy.

Hosted by www.Geocities.ws

1