diff --git a/munin/iptables_ b/munin/iptables_ index 42aafb5e..e0fcf999 100755 --- a/munin/iptables_ +++ b/munin/iptables_ @@ -26,19 +26,19 @@ if arg == "config" : print 'graph_category network' print "graph_vlabel nb de regles" for chain in CHAINS : - nom = string.lower(chain.replace('_', '').replace('-', '')) - label = chain.replace('_', '-') + nom = string.lower(chain.replace('_', '').replace('-', '').replace('.','').replace('/', '')) + label = chain.replace('_', '-').replace('.','-').replace('/','-') print "%s.label %s" % (nom, label) if CHAINS.index(chain) == 0 : print "%s.draw AREA" % nom else : print "%s.draw STACK" % nom if label == "TEST-MAC-IP" : - print "%s.warning 100:" % nom - print "%s.critical 1:" % nom + print "%s.warning 100:2000" % nom + print "%s.critical 1:3000" % nom else : for chain in CHAINS : - nom = string.lower(chain.replace('_', '').replace('-', '')) + nom = string.lower(chain.replace('_', '').replace('-', '').replace('.','').replace('/', '')) value = int(commands.getoutput('%s %s | wc -l' % (IPTABLES, chain))) - 2 print "%s.value %d" % (nom, value)