Below is the file 'plugins/iptables.py' from this revision. You can also download the file.
import os def run(): # for now, just check that there are rules iptables_command = '/sbin/iptables -L INPUT -n' fd = os.popen(iptables_command) result = fd.read() fd.close() line_count = len(result.split('\n')) if line_count > 2: return [] else: return [("medium", 'no iptables rules in chain "INPUT"')]