Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/network/shorewall_ | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/python |
| 2 | 2 |
# shorewall_ v2.0 - 30 Aug 2008 - Tanguy Pruvot <tanguy.pruvot@gmail.com> |
| 3 |
#
|
|
| 3 |
# |
|
| 4 | 4 |
# A munin plugin for tracking traffic as recorded by shorewall accounting rules |
| 5 |
#
|
|
| 5 |
# |
|
| 6 | 6 |
# ex: ln -s /usr/share/munin/plugins/shorewall_ /etc/munin/plugins/shorewall_ftp |
| 7 | 7 |
# will log ftp* rules like ftp, ftp_input, ftp_output etc... |
| 8 |
#
|
|
| 8 |
# |
|
| 9 | 9 |
# Basic Concept by Chris AtLee <chris@atlee.ca> Released under the GPL v2 |
| 10 | 10 |
|
| 11 | 11 |
import sys, commands, re |
| ... | ... | |
| 61 | 61 |
for name in chainNames: |
| 62 | 62 |
retval.append((name, chains[name])) |
| 63 | 63 |
return retval |
| 64 |
|
|
| 64 |
|
|
| 65 | 65 |
if len(sys.argv) > 1: |
| 66 | 66 |
if sys.argv[1] == "autoconf": |
| 67 | 67 |
print "yes" |
| ... | ... | |
| 76 | 76 |
print "%s.label %s" % (chain, chain) |
| 77 | 77 |
print "%s.cdef %s,8,*" % (chain, chain) |
| 78 | 78 |
sys.exit(0) |
| 79 |
|
|
| 79 |
|
|
| 80 | 80 |
for chain, bytes in getBytesByChain(): |
| 81 | 81 |
print "%s.value %i" % (chain, bytes) |
Formats disponibles : Unified diff