Handles per-interface alerts via the AlertsManager

This commit moves the global ntopng-wide alerts to
interfaces' AlertsManager s
This commit is contained in:
Simone Mainardi 2016-08-09 16:47:36 +02:00
parent 6e91918ea8
commit 52abb7659a
17 changed files with 262 additions and 203 deletions

View file

@ -34,7 +34,7 @@ function dumpInterfaceStats(interface_name)
res["drops"] = ifstats.drops
if prefs.are_alerts_enabled == true then
res["alerts"] = ntop.getNumQueuedAlerts()
res["alerts"] = interface.getNumQueuedAlerts()
end
res["num_flows"] = ifstats.flows