MRTG-TRAFFIC-SUM(1)
๐ MRTG-TRAFFIC-SUM ๐
okay bestie, pull up a chair because this is the mrtg-traffic-sum manual page (it lives in section 1 of the mrtg manuals, iykyk) and she is so useful. she reads your mrtg logs and does the math so you don't have to. math girl summer. ๐งฎโจ
โจ NAME โจ
mrtg-traffic-sum โ Builds monthly traffic summary from mrtg log files
no cap, that's literally the whole job description. ๐
๐ฆ SYNOPSIS ๐ฆ
mrtg-traffic-sum [options...] config-file
and here's the full menu of options, bestie:
--manโ show man-page and exit-h,--helpโ display this help and exit--versionโ output version information and exit--catch=regexpโ filter out things that match this in PageTop--email=addressโ email the result--min=gigabytesโ minimal number of gigabites required for report--range=<when>โ Specify"current"for month-to-date,"previous"for last complete month--units=[GB|MB]โ Display results in gigabytes (default is MB)
๐ธ DESCRIPTION ๐ธ
so the way that mrtg-traffic-sum works is: it 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). ๐ซถ yes we're doing real gigas, not the sneaky binary ones.
The result of this analysis can be sent via email to an address of your choice using the --email option. iconic behaviour honestly, set it and forget it, your inbox gets the receipts. ๐ง
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
like. look at her. she's doing her best. ๐ (copy her exactly if you touch her, bestie, every backslash matters.)
By default, all traffic which is over one megabyte gets reported. Use the --min switch to change this number. tiny traffic? not invited to the party. sorry babe. ๐
๐ COPYRIGHT ๐
Copyright (c) 2002 by Tobias Oetiker. All rights reserved.
๐ LICENSE ๐
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
fr fr read the license, it's giving legally binding but make it fashion ๐
๐ AUTHOR ๐
Tobias Oetiker <tobi@oetiker.ch>, Keith Dunnett <keith@dunnett.name>
absolute legends, both of them. ๐
โญ HISTORY โญ
- 2002-07-13 to Initial Version
- 2009-12-38 kd New features
(that second date is exactly what it says on the page, bestie, I don't make the rules ๐ญ)
okay that's the whole page!! she's version 2.17.10, dated 2021-10-08, and she's out here doing monthly traffic math for you like the main character she is. ๐โจ go forth and sum, bestie ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.22: mrtg-doc 2.17.10-r1 ยท GPL-2.0-or-later
- alpine 3.23: mrtg-doc 2.17.10-r1 ยท GPL-2.0-or-later
- alpine 3.24: mrtg-doc 2.17.10-r2 ยท GPL-2.0-or-later
- centos-stream 10: mrtg 2.17.10-13.el10 ยท GPL-2.0-or-later
- debian bookworm: mrtg 2.17.10-5+deb12u2 ยท GPL-2.0-or-later
- debian trixie: mrtg 2.17.10-13+deb13u2 ยท GPL-2.0-or-later
- fedora 43: mrtg 2.17.10-12.fc43 ยท GPL-2.0-or-later
- fedora 43: mrtg 2.17.10-13.fc43 ยท GPL-2.0-or-later
- fedora 44: mrtg 2.17.10-13.fc44 ยท GPL-2.0-or-later
- fedora 44: mrtg 2.17.10-14.fc44 ยท GPL-2.0-or-later
- nixos 26.05: mrtg 2.17.10
- nixpkgs unstable: mrtg 2.17.10
- ubuntu jammy: mrtg 2.17.10-3 ยท GPL-2.0-or-later
- ubuntu noble: mrtg 2.17.10-12 ยท GPL-2.0-or-later
- ubuntu questing: mrtg 2.17.10-13
- ubuntu resolute: mrtg 2.17.10-14 ยท GPL-2.0-or-later
- ubuntu stonking: mrtg 2.17.10-16 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms