Changes

From SME Server
Jump to navigationJump to search
7 bytes removed ,  11:56, 29 July 2017
change logterse pattern from "/logterse plugin/" to "/logterse/" to work w/ SME 9.2
Line 190: Line 190:  
echo -n "Days of logfiles to scan [$DAYS]: "; read NEWDAYS; \
 
echo -n "Days of logfiles to scan [$DAYS]: "; read NEWDAYS; \
 
if [ $NEWDAYS ]; then DAYS=$NEWDAYS; fi; \
 
if [ $NEWDAYS ]; then DAYS=$NEWDAYS; fi; \
awk -F"[\t]" ' /logterse plugin/ { svc=$6; count[svc]++; count["Total"]++; }  END  \
+
awk -F"[\t]" ' /logterse/ { svc=$6; count[svc]++; count["Total"]++; }  END  \
 
{ for (j in count) print count[j] "\t" j; }' \
 
{ for (j in count) print count[j] "\t" j; }' \
 
$(find /var/log/qpsmtpd /var/log/sqpsmtpd -ctime -$DAYS -type f -name "@*" -o -name current) \
 
$(find /var/log/qpsmtpd /var/log/sqpsmtpd -ctime -$DAYS -type f -name "@*" -o -name current) \

Navigation menu