Project

General

Profile

Actions

Feature #12369

open

Skip If No Content issue

Added by Andy Kniveton over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Mail report
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

Even if Skip If No Content is ticked if running a command will always result in an email being sent as the command output is sent in the email.

I'm running the two following scripts to email me the snort logs for yesterday:-

grep ^`date -v-1d "%D"` /var/log/snort/snort_igb0*/alert | awk -F, '{a[$5]+;} END {for(i in a) print a[i]" "i}' | sed 's/"//g' | sort -r ; echo

grep ^`date -v-1d +"%D"` /var/log/snort/snort_igb0*/alert ; echo

I'm recieving the following email:-

This is a periodic report from pfSense at pfsense.xxxxxxxxxx.net.

Current report: Daily Snort LAN Events

Command output: Snort LAN Alerts (grep ^`date -v-1d "%D"` /var/log/snort/snort_igb0*/alert | awk -F, '{a[$5]+;} END {for(i in a) print a[i]" "i}' | sed 's/"//g' | sort -r ; echo)

Command output: Snort LAN Alerts Details (grep ^`date -v-1d +"%D"` /var/log/snort/snort_igb0*/alert ; echo)

It would be nice if the Skip If No Content also included the commands.

No data to display

Actions

Also available in: Atom PDF