Migrate interface alerts to in-memory alerts

This commit is contained in:
emanuele-f 2017-11-16 16:05:49 +01:00
parent 346627eb74
commit d85fc2b06b
5 changed files with 78 additions and 31 deletions

View file

@ -71,6 +71,17 @@ end
-- ##################################################################
-- Remove the json dumps previously needed for alerts generation
for _, ifname in pairs(interface.getIfNames()) do
interface.select(ifname)
local ifid = getInterfaceId(ifname)
local alerts_status_path = fixPath(dirs.workingdir .. "/" .. ifid .. "/json/")
ntop.rmdir(alerts_status_path)
end
-- ##################################################################
initCustomnDPIProtoCategories()
loadHostBlackList()