From b3f8515fd5cb343dc521793026932b45917110b8 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 8 Feb 2013 18:17:15 +0100 Subject: [PATCH] Fix regexp to find incoming http connections (munin fds plugin) --- tools/checkfds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkfds.sh b/tools/checkfds.sh index 220b2bf9..61654c06 100755 --- a/tools/checkfds.sh +++ b/tools/checkfds.sh @@ -57,7 +57,7 @@ for pid in ${pids}; do cnt=$(grep "${pid}" "${tmpreport}" | grep ":${redis_port} " | wc -l); if test $cnt -gt $maxredis; then maxredis=$cnt; fi - cnt=$(grep "${pid}" "${tmpreport}" | grep ":${http_port} " | grep -v "LISTEN" | wc -l); + cnt=$(grep "${pid}" "${tmpreport}" | grep ":${http_port}-" | grep -v "LISTEN" | wc -l); if test $cnt -gt $maxhttp; then maxhttp=$cnt; fi cnt=$(grep "${pid}" "${tmpreport}" | wc -l);