1MRTG-TRAFFIC-SUM(1) mrtg MRTG-TRAFFIC-SUM(1)
2
3
4
6 mrtg-traffic-sum - Builds monthly traffic summary from mrtg log files
7
9 mrtg-traffic-sum [options...] config-file
10
11 --man show man-page and exit
12 -h, --help display this help and exit
13 --version output version information and exit
14 --catch=regexp filter out things that match this in PageTop
15 --email=address email the result
16 --min=gigabytes minimal number of gigabites required for report
17 --range=<when> Specify "current" for month-to-date, "previous" for last complete month
18 --units=[GB|MB] Display results in gigabytes (default is MB)
19
21 The mrtg-traffic-sum goes through the mrtg logs for the targets in the
22 the config file specified and builds the traffic total for the last
23 month in Giga Bytes. (Note in communications Giga is 10^9).
24
25 The result of this analysis can be sent via email to an address of your
26 choice using the --email option.
27
28 With the --catch option you can specify a regular expression which will
29 be matched against the contents of the PageTop settings. The regular
30 expression should return a value into $1 and possibly into $2. This
31 will then be used as description for the appropriate traffic sum. By
32 default the catch is set to:
33
34 (?:description|port name):</td>\s*<td>\s*([^< ]*?[^<]*?)\s*</td
35
36 By default, all traffic which is over one megabyte gets reported. Use
37 the --min switch to change this number.
38
40 Copyright (c) 2002 by Tobias Oetiker. All rights reserved.
41
43 This program is free software; you can redistribute it and/or modify it
44 under the terms of the GNU General Public License as published by the
45 Free Software Foundation; either version 2 of the License, or (at your
46 option) any later version.
47
48 This program is distributed in the hope that it will be useful, but
49 WITHOUT ANY WARRANTY; without even the implied warranty of
50 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
51 General Public License for more details.
52
53 You should have received a copy of the GNU General Public License along
54 with this program; if not, write to the Free Software Foundation, Inc.,
55 675 Mass Ave, Cambridge, MA 02139, USA.
56
58 Tobias Oetiker <tobi@oetiker.ch>, Keith Dunnett <keith@dunnett.name>
59
61 2002-07-13 to Initial Version
62 2009-12-38 kd New features
63
64
65
662.17.10 2021-10-08 MRTG-TRAFFIC-SUM(1)