mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add page and email_admin to hostnames extension
This commit is contained in:
parent
672504e265
commit
3bb4a35200
3 changed files with 33 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue