mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
parent
5929f80b19
commit
a8c00f785d
6 changed files with 64 additions and 21 deletions
|
|
@ -39,8 +39,10 @@ function dumpInterfaceStats(interface_name)
|
|||
end
|
||||
|
||||
if prefs.are_alerts_enabled == true then
|
||||
res["alerts"] = interface.getCachedNumAlerts(false--[[ not engaged --]])
|
||||
res["engaged_alerts"] = interface.getCachedNumAlerts(true --[[ engaged --]])
|
||||
local alert_cache = interface.getCachedNumAlerts()
|
||||
res["alerts"] = alert_cache["num_alerts"]
|
||||
res["engaged_alerts"] = alert_cache["num_alerts_engaged"]
|
||||
res["error_level_alerts"] = alert_cache["error_level_alerts"]
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue