diff --git a/scripts/zeekygen/__load__.zeek b/scripts/zeekygen/__load__.zeek index 2cfa93d48b..80a530bc3b 100644 --- a/scripts/zeekygen/__load__.zeek +++ b/scripts/zeekygen/__load__.zeek @@ -21,7 +21,14 @@ @load ./example.zeek -event zeek_init() +event zeek_init() &priority=1000 { + # Disable events in modules that use zeek_init() to do stuff and may + # fail when run under zeekygen. For the purpose of zeekygen, we could + # probably disable all modules, too. + disable_module_events("Control"); + disable_module_events("Management::Agent::Runtime"); + disable_module_events("Management::Controller::Runtime"); + disable_module_events("Management::Node"); terminate(); }