Add page and email_admin to hostnames extension

This commit is contained in:
Vlad Grigorescu 2021-04-23 10:05:34 -05:00
parent 672504e265
commit 3bb4a35200
3 changed files with 33 additions and 4 deletions

View file

@ -33,3 +33,8 @@ hook notice(n: Notice::Info) &priority=-5
email_notice_to(n, email, T);
}
}
# If hostnames.zeek was loaded first, add ourselves
@ifdef ( email_with_hostnames_types )
redef email_with_hostnames_types += { ACTION_EMAIL_ADMIN };
@endif

View file

@ -11,7 +11,7 @@ export {
## variable.
ACTION_PAGE
};
## Email address to send notices with the :zeek:enum:`Notice::ACTION_PAGE`
## action.
option mail_page_dest = "";
@ -22,3 +22,8 @@ hook notice(n: Notice::Info) &priority=-5
if ( ACTION_PAGE in n$actions )
email_notice_to(n, mail_page_dest, F);
}
# If hostnames.zeek was loaded first, add ourselves
@ifdef ( email_with_hostnames_types )
redef email_with_hostnames_types += { ACTION_PAGE };
@endif