mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00

Can't test all the functionality, so skipping DNS lookup and the actual mailing via sendmail.
17 lines
384 B
Text
17 lines
384 B
Text
# @TEST-EXEC: bro -C -r $TRACES/web.trace %INPUT
|
|
# @TEST-EXEC: btest-diff alarm-mail.txt
|
|
|
|
redef Notice::policy += { [$action = Notice::ACTION_ALARM, $priority = 1 ] };
|
|
redef Notice::force_email_summaries = T;
|
|
|
|
redef enum Notice::Type += {
|
|
Test_Notice,
|
|
};
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
NOTICE([$note=Test_Notice, $conn=c, $msg="test", $identifier="static"]);
|
|
}
|
|
|
|
|
|
|