mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added blacklist charts
This commit is contained in:
parent
edba6406c0
commit
410667808d
4 changed files with 16 additions and 3 deletions
|
|
@ -70,11 +70,13 @@ function ts_dump.blacklist_update(when, verbose)
|
|||
local lists_utils = require("lists_utils")
|
||||
local lists = lists_utils.getCategoryLists()
|
||||
|
||||
for k, v in pairs(lists) do
|
||||
for list_name, v in pairs(lists) do
|
||||
if v.status.num_hits > 0 then
|
||||
list_name = list_name:gsub("%s+", "_") -- replace space with underscore
|
||||
|
||||
ts_utils.append("blacklist:hits", {
|
||||
ifid = getSystemInterfaceId(),
|
||||
blacklist_name = k,
|
||||
blacklist_name = list_name,
|
||||
hits = v.status.num_hits
|
||||
}, when)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue