1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Change regex to match "prepend" pattern

This commit is contained in:
Doctor 2020-04-29 14:41:00 +02:00 committed by Lars Kruse
parent 8939111823
commit 24f4883777

View file

@ -69,7 +69,7 @@ fi
#
function get_log_count() {
egrep "policyd-spf\[[0-9]+\]: $1;" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
egrep "policyd-spf\[[0-9]+\]:(.*) $1" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
}
PASS=$(get_log_count "Pass")