diff --git a/munin/iptables_ b/munin/iptables_ index d9c59b7c..45f7b5b7 100755 --- a/munin/iptables_ +++ b/munin/iptables_ @@ -51,7 +51,8 @@ else : data = commands.getoutput("%s %s | uniq | awk '{print $4}' | grep 231 | awk -F '.' '{print $1$2$3}' | sort | uniq -c | grep 231" % (IPTABLES, chain)).split('\n') total = 0 for line in data : - value, subnet = line.split() + try: value, subnet = line.split() + except ValueError: continue total += int(value) if subnet[:8] == "10231136": print "%sadm.value %s" % (nom, value)