From 57ff21b08b734c2450b7f3929852620eda65a7c6 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 1 Oct 2015 17:43:24 -0700 Subject: mmdsr now reports held and banned subs in separate categories. Banned addresses have s/\+\d+@/+@/ because of a flood of such lengthening the report. --- contrib/mmdsr | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'contrib/mmdsr') diff --git a/contrib/mmdsr b/contrib/mmdsr index a103a08d..94d55b4e 100644 --- a/contrib/mmdsr +++ b/contrib/mmdsr @@ -186,6 +186,13 @@ # Updated on: Sat Jul 25 07:52:55 PDT 2015 # Updated "Login failure with private rosters" report to # account for newly added IP in log message. +# +# 0.0.24 Update by Mark Sapiro +# Updated on: Thu Oct 1 15:15:39 PDT 2015 +# Report vette log held and banned subscriptions as their +# own categories instead of in other errors. +# Replaced s/\+\d+@/+@/ in vette log +# banned subscription messages due to flood of such. ############################################################################### # Set up locations of standard commands, directories, etc.... @@ -519,10 +526,20 @@ do echo "------------------------------" >> $TMP $GREP -i 'Post to moderated list' $TMPLOG | $AWK '{ print $6 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + echo "" >> $TMP + echo "Held Subscriptions" >> $TMP + echo "------------------------------" >> $TMP + $GREP -i 'held subscription request' $TMPLOG | $AWK '{ print $6 " " $11 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + + echo "" >> $TMP + echo "Banned Subscriptions" >> $TMP + echo "------------------------------" >> $TMP + $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + echo "" >> $TMP echo "Other Errors:" >> $TMP echo "------------------------------" >> $TMP - $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid|held subscription request|banned subscription)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP elif [ "${LOG}" = "smtp-failure" ] ; then -- cgit v1.2.3