mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-04 07:04:02 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/python
|
||||
# shorewall_ v2.0 - 30 Aug 2008 - Tanguy Pruvot <tanguy.pruvot@gmail.com>
|
||||
#
|
||||
#
|
||||
# A munin plugin for tracking traffic as recorded by shorewall accounting rules
|
||||
#
|
||||
#
|
||||
# ex: ln -s /usr/share/munin/plugins/shorewall_ /etc/munin/plugins/shorewall_ftp
|
||||
# will log ftp* rules like ftp, ftp_input, ftp_output etc...
|
||||
#
|
||||
#
|
||||
# Basic Concept by Chris AtLee <chris@atlee.ca> Released under the GPL v2
|
||||
|
||||
import sys, commands, re
|
||||
|
@ -61,7 +61,7 @@ def getBytesByChain():
|
|||
for name in chainNames:
|
||||
retval.append((name, chains[name]))
|
||||
return retval
|
||||
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
if sys.argv[1] == "autoconf":
|
||||
print "yes"
|
||||
|
@ -76,6 +76,6 @@ if len(sys.argv) > 1:
|
|||
print "%s.label %s" % (chain, chain)
|
||||
print "%s.cdef %s,8,*" % (chain, chain)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
for chain, bytes in getBytesByChain():
|
||||
print "%s.value %i" % (chain, bytes)
|
Loading…
Add table
Add a link
Reference in a new issue