filtered out nagios queries from homelab
This commit is contained in:
parent
527556edc5
commit
739dc6f150
|
@ -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 " <LI> <A HREF="${host}_all.html" target="_blank">${host} - All</A></LI>" >>${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 " <LI> <A HREF="${host}_today.html" target="_blank">${host} - Today</A></LI>" >>${dstDir}/index.html
|
||||
|
|
Loading…
Reference in New Issue