Created
December 16, 2008 03:11
-
-
Save mitsuru/36244 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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