#!/bin/sh # # fw_conntrack: Plugin to monitor the number of tracked connections # through a Linux 2.4/2.6 firewall. # # License: GPL # # Parameters supported: # # config # autoconf # # Bugs: # The connections tables can run full, but where is the limits found? # If we can find them then we can send warnings to nagios. # # 2004.05.05: Initial version by Nicolai Langfeldt, Linpro AS, Oslo, Norway # 2004.05.06: Enhanced to count NATed connections after input from Xavier # on munin-users list # # ESTABLISED+FIN_WAIT+TIME_WAIT+SYN_SENT+UDP is the most interesting # connections. The total list also includes SYN_RECV, CLOSE, # CLOSE_WAIT, LAST_ACK and LISTEN, but these were not (often) observed # on my firewall. # # TOTAL is the total number of tracked connections. # ASSURED and UNREPLIED connections are complimentary subsets of # ESTABLISHED. ASSURED is after ACK is seen after SYN_RECV. # Therefore ASSURED is plotted but not UNREPLIED. # NATed will almost always be the same as the total # # $Log$ # Revision 1.4 2004/05/20 19:02:37 jimmyo # Set categories on a bunch of plugins # # Revision 1.3 2004/05/15 21:33:29 jimmyo # "Upped" som plugins from contrib/manual to manual or auto. # # Revision 1.2 2004/05/09 19:12:08 jimmyo # Cleanup of linux/fw*-plugins, by Nicolai Langfeldt # # # Magic markers? #%# family=manual #%# capabilities=autoconf case $1 in config) cat <