mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Improved detection of flow status
This commit is contained in:
parent
689e38d90a
commit
5ff9db9dd5
9 changed files with 214 additions and 12 deletions
|
|
@ -2002,3 +2002,16 @@ end
|
|||
function formatWebSite(site)
|
||||
return("<A target=\"_blank\" HREF=http://"..site..">"..site.."</A> <i class=\"fa fa-external-link\"></i></th>")
|
||||
end
|
||||
|
||||
-- Update Utils::flowstatus2str
|
||||
function getFlowStatus(status)
|
||||
if(status == 0) then return("<font color=green>Normal</font>")
|
||||
elseif(status == 1) then return("<font color=red>Slow TCP Connection</font>")
|
||||
elseif(status == 2) then return("<font color=red>Slow Application Header</font>")
|
||||
elseif(status == 3) then return("<font color=red>Slow Data Exchange (Slowloris?)</font>")
|
||||
elseif(status == 4) then return("<font color=red>Low Goodput</font>")
|
||||
elseif(status == 5) then return("<font color=red>Suspicious TCP Probing (or server port down)</font>")
|
||||
elseif(status == 6) then return("<font color=red>TCP Connection Reset</font>")
|
||||
else return("<font color=orange>Unknown status ("..status..")</font>")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue