diff --git a/mkwebstats.sh b/mkwebstats.sh index 087497c..631f5e1 100755 --- a/mkwebstats.sh +++ b/mkwebstats.sh @@ -84,14 +84,14 @@ do ################################### # Analyze all log entries - zcat -f ${logDir}/${logfile}* | ${goBin} >/dev/null 2>&1 - --geoip-database=${geoipArg} --time-format=${timeArg} --date-format=${dateArg} --log-format="${formatArg}" --output=${dstDir}/${host}_all.html --html-report-title="${host} - All" + zcat -f ${logDir}/${logfile}* | grep -v "nagios-plugins" | ${goBin} >/dev/null 2>&1 - --geoip-database=${geoipArg} --time-format=${timeArg} --date-format=${dateArg} --log-format="${formatArg}" --output=${dstDir}/${host}_all.html --html-report-title="${host} - All" # put a link to the report in our index.html echo "
  • ${host} - All
  • " >>${dstDir}/index.html ################################### # Analyze only today's log entries - zcat -f ${logDir}/${logfile}* | grep "^\[${dateToday}:" | ${goBin} >/dev/null 2>&1 - --geoip-database=${geoipArg} --time-format=${timeArg} --date-format=${dateArg} --log-format="${formatArg}" --output=${dstDir}/${host}_today.html --html-report-title="${host} - Today" + zcat -f ${logDir}/${logfile}* | grep "^\[${dateToday}:" | grep -v "nagios-plugins" | ${goBin} >/dev/null 2>&1 - --geoip-database=${geoipArg} --time-format=${timeArg} --date-format=${dateArg} --log-format="${formatArg}" --output=${dstDir}/${host}_today.html --html-report-title="${host} - Today" # put a link to the report in our index.html echo "
  • ${host} - Today
  • " >>${dstDir}/index.html