mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
24 lines
492 B
Text
24 lines
492 B
Text
@load protocols/ssl/expiring-certs
|
|
|
|
const watched_servers: set[addr] = {
|
|
87.98.220.10,
|
|
} &redef;
|
|
|
|
# Site::local_nets usually isn't something you need to modify if
|
|
# BroControl automatically sets it up from networks.cfg. It's
|
|
# shown here for completeness.
|
|
redef Site::local_nets += {
|
|
87.98.0.0/16,
|
|
};
|
|
|
|
hook Notice::policy(n: Notice::Info)
|
|
{
|
|
if ( n$note != SSL::Certificate_Expired )
|
|
return;
|
|
|
|
if ( n$id$resp_h !in watched_servers )
|
|
return;
|
|
|
|
add n$actions[Notice::ACTION_EMAIL];
|
|
}
|
|
|