mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements per-host file-based alert checks (e.g., bytes.lua)
This commit is contained in:
parent
a31c619500
commit
2172338948
11 changed files with 210 additions and 102 deletions
|
|
@ -493,4 +493,16 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function alerts.application_bytes(info, application_name)
|
||||
local curr_val = 0
|
||||
|
||||
if info["ndpi"] and info["ndpi"][application_name] then
|
||||
curr_val = info["ndpi"][application_name]["bytes.sent"] + info["ndpi"][application_name]["bytes.rcvd"]
|
||||
end
|
||||
|
||||
return curr_val
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
return(alerts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue