mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
An alert is genererated when a malware site is visited
This commit is contained in:
parent
5c6f6592e4
commit
192983d35c
5 changed files with 73 additions and 29 deletions
|
|
@ -44,6 +44,8 @@ sqlite = _GET["sqlite"]
|
|||
-- Get from redis the throughput type bps or pps
|
||||
throughput_type = getThroughputType()
|
||||
|
||||
prefs = ntop.getPrefs()
|
||||
|
||||
if(network_id ~= nil) then
|
||||
network_id = tonumber(network_id)
|
||||
end
|
||||
|
|
@ -523,8 +525,12 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
|
||||
print ("\", \"column_info\" : \"".. value["info"])
|
||||
|
||||
if(value["category"] ~= "") then
|
||||
print(" ".. getCategoryIcon(value["info"], value["category"]))
|
||||
if(prefs.is_categorization_enabled) then
|
||||
flow = interface.findFlowByKey(tonumber(key))
|
||||
if(flow ~= nil) then value["category"] = flow["category"] end
|
||||
if(value["category"] ~= "") then
|
||||
print(" ".. getCategoryIcon(value["info"], value["category"]))
|
||||
end
|
||||
end
|
||||
|
||||
print(" \" }\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue