Skip to content

Instantly share code, notes, and snippets.

@mitsuru
Created December 16, 2008 03:11
Show Gist options
  • Save mitsuru/36244 to your computer and use it in GitHub Desktop.
Save mitsuru/36244 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# ip_conntrack: Plugin to monitor the number of tracked connection
if [ "$1" = "config" ]; then
echo "graph_title Number of tracked connections"
echo "graph_args --base 1000"
echo "graph_vlabel connections"
echo "graph_category network"
echo "connection.label connections"
echo "connection.type DERIVE"
echo "connection.min 0"
echo "connection.max 100000"
exit 0
fi;
echo -n "connection.value "
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment