From f922e5b6ae5d7b128b56a1b8e0e969613e3bee78 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 10 Mar 2010 14:43:19 +0000 Subject: Improved spelling of port-related checks --- cron-sh/scripts/02_network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cron-sh/scripts/02_network.sh') diff --git a/cron-sh/scripts/02_network.sh b/cron-sh/scripts/02_network.sh index c50af4c..a602e1f 100755 --- a/cron-sh/scripts/02_network.sh +++ b/cron-sh/scripts/02_network.sh @@ -26,7 +26,7 @@ fi if check_is_enabled "${CHECK_OPEN_PORT}" ; then if [[ ${IGNORE_PID_CHANGES} = yes ]]; then - FILTER="sed -e s/\([0-9]*\)\/\(.*\)$/\2/g" + FILTER="sed -e s/\(PID\|[0-9]*\)\/\(.*\)$/\2/g" else FILTER="cat" fi @@ -43,7 +43,7 @@ fi ### Changed open port if check_is_enabled "${CHECK_OPEN_PORT}" ; then - Diffcheck ${OPEN_PORT_TODAY} ${OPEN_PORT_YESTERDAY} ${OPEN_PORT_DIFF} "network listening ports" + Diffcheck ${OPEN_PORT_TODAY} ${OPEN_PORT_YESTERDAY} ${OPEN_PORT_DIFF} "processes with open network ports" fi ### Changed firewall -- cgit v1.2.1