Fix regexp to find incoming http connections (munin fds plugin)

This commit is contained in:
Sandro Santilli
2013-02-08 18:17:15 +01:00
parent 6e6c1101fe
commit b3f8515fd5
+1 -1
View File
@@ -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);