1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Detect UDP conections too

This commit is contained in:
Tom Hendrikx 2013-06-17 11:49:31 +02:00
parent 4a7a0de134
commit 267c45f904

View file

@ -93,8 +93,8 @@ for IP in $IPLIST; do
# If line number match the line number of the match listen ip, print the line...
if [ "$N" -gt "$MATCH" ]; then
# ... except if the line contain TCP word (this start an other listen)
if ( echo $line | grep TCP > /dev/null ); then
# ... except if the line contain TCP or UDP word (this start an other listen)
if ( echo $line | grep -e TCP -e UDP > /dev/null ); then
break
fi