mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handles per-interface alerts via the AlertsManager
This commit moves the global ntopng-wide alerts to interfaces' AlertsManager s
This commit is contained in:
parent
6e91918ea8
commit
52abb7659a
17 changed files with 262 additions and 203 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue