Просмотр исходного кода

Minor cleanup (tabs and wrong quotes)

George Shuklin 10 лет назад
Родитель
Сommit
549eccdd76
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      check_connections.sh

+ 4 - 4
check_connections.sh

@@ -21,7 +21,7 @@ Uses iproute2's ss tool to retrieve connections.
     -p <type> Set protocol or family type (udp/tcp/inet/inet6)
     -c        Critical threshold as an integer
     -w        Warning threshold as an integer
-	-e		  Exact count mode (raise CRITICAL if connection != critical, warn is ignored)
+    -e        Exact count mode (raise CRITICAL if connection != critical, warn is ignored)
 
 Usage: $0 -s established '( sport = :443 )' -w 800 -c 1000
 EOF
@@ -101,11 +101,11 @@ COUNT=$(ss -n state $STATE $PROTOCOL $FILTER | grep -v 'State\|-Q' | wc -l)
 
 if [ $EXACT -eq 1 ]; then
 
-  echo 'COUNT sockets in $STATE state'
+  echo "$COUNT sockets in $STATE state"
   if [ $COUNT -ne $CRIT ]; then
-	exit $CRITICAL
+    exit $CRITICAL
   else
-	exit $OK
+    exit $OK
   fi
 
 elif [ $COUNT -gt $CRIT ]; then