mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add current zmq header version in ExportInterface
This commit is contained in:
parent
3cf548123d
commit
ef10ba3540
6 changed files with 1 additions and 63 deletions
|
|
@ -1525,29 +1525,6 @@ $('#myModal').on('hidden.bs.modal', function () {
|
|||
|
||||
end
|
||||
|
||||
function alertAnomalousHosts()
|
||||
local ifnames = interface.getIfNames()
|
||||
local cb = function(_ifname, ifstats)
|
||||
local ha = interface.getHostsWithAnomalies()
|
||||
|
||||
for host_key, host_stats in pairs(ha) do
|
||||
local anomalies = host_stats["anomalies"]
|
||||
|
||||
if type(anomalies) == "table" then
|
||||
for anom_key, anom_stats in pairs(anomalies) do
|
||||
-- TODO: engage alert for anom_key if alert has not yet been engaged
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--TODO: check, among the currently engaged alerts, those that are no longed engaged
|
||||
-- by checking in ha retrieved above. If an alert is engaged, but the corresponding host
|
||||
-- is no longer in ha, then the alert must be released.
|
||||
end
|
||||
|
||||
callback_utils.foreachInterface(ifnames, enable_second_debug, cb)
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
local function getEngagedAlertsCacheKey(ifid, granularity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue