mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
parent
ef70bcb2a5
commit
7e1af2b196
11 changed files with 80 additions and 33 deletions
|
|
@ -2034,7 +2034,7 @@ function flushAlertsData()
|
|||
ntop.setAlertsTemporaryDisabled(true);
|
||||
os.execute("sleep 3")
|
||||
|
||||
callback_utils.foreachInterface(ifnames, false, function(ifname, ifstats)
|
||||
callback_utils.foreachInterface(ifnames, nil, function(ifname, ifstats)
|
||||
if(verbose) then io.write("[Alerts] Processing interface "..ifname.."...\n") end
|
||||
|
||||
-- Clear hosts status
|
||||
|
|
@ -2057,7 +2057,7 @@ function flushAlertsData()
|
|||
if(verbose) then io.write("[Alerts] Enabling alerts generation...\n") end
|
||||
ntop.setAlertsTemporaryDisabled(false);
|
||||
|
||||
callback_utils.foreachInterface(ifnames, false, function(_ifname, ifstats)
|
||||
callback_utils.foreachInterface(ifnames, nil, function(_ifname, ifstats)
|
||||
-- Reload hosts status
|
||||
interface.refreshHostsAlertsConfiguration(true --[[ with counters ]])
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue