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:
parent
4a7a0de134
commit
267c45f904
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue