OSDN Git Service

Ver.1.4.30: Fix error in tools/mrtg.
[opengate/opengate.git] / opengate / tools / mrtg / output.sh
index e8cbf28..a64a88b 100644 (file)
@@ -2,7 +2,7 @@
 
 #######################################
 ##
-## shwo opengate status for MRTG
+## show opengate status for MRTG
 ##
 ##   1 line : IPv6 Users
 ##   2 line : Total Users
@@ -26,7 +26,7 @@ tmp_6="/tmp/og_count_6.tmp"
 
 ######################################################
 
-ps ax | grep $process > $tmp_all
+ps ax | grep $process | grep -v grep > $tmp_all
 
 COUNT=`wc -l $tmp_all | awk '{print $1}'`