Feature #12369
openSkip If No Content issue
0%
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