mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added better handling of blacklisted hosts and alerts
Disabled MySQL DB for view interfaces
This commit is contained in:
parent
fd6bd7ef76
commit
ee400ef10f
7 changed files with 36 additions and 20 deletions
|
|
@ -441,6 +441,9 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
if value["localhost"] == true or value["systemhost"] == true then
|
||||
print("<span class='label label-success'>Local</span>") else print("<span class='label label-default'>Remote</span>")
|
||||
end
|
||||
if value["is_blacklisted"] == true then
|
||||
print(" <span class='label label-danger'>Blacklist</span>")
|
||||
end
|
||||
end
|
||||
|
||||
sent2rcvd = round((value["bytes.sent"] * 100) / (value["bytes.sent"]+value["bytes.rcvd"]), 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue