mrtg-traffic-sum1
Builds monthly traffic summary from mrtg log files
Usage
mrtg-traffic-sum [options ...]
config-file
Overview
The mrtg-traffic-sum goes through the mrtg logs for the targets in the the config file specified and builds the traffic total for the last month in Giga Bytes. (Note in communications Giga is 10^9).
The result of this analysis can be sent via email to an address of your choice using the --email option.
With the --catch option you can specify a regular expression which will be matched against the contents of the PageTop settings. The regular expression should return a value into $1 and possibly into $2. This will then be used as description for the appropriate traffic sum. By default the catch is set to:
(?:description|port name):</td>\s*<td>\s*([^< ]*?[^<]*?)\s*</td
By default, all traffic which is over one megabyte gets reported. Use the --min switch to change this number.
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).