mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixes dropped alert not working
This commit is contained in:
parent
ec59bcf27b
commit
ccc7382dd0
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ local script = {
|
|||
|
||||
local function dropped_alerts_check(params)
|
||||
local dropped_alerts = interface.getStats()["num_dropped_alerts"]
|
||||
-- This is the default value
|
||||
if not dropped_alerts then
|
||||
dropped_alerts = ""
|
||||
end
|
||||
|
||||
-- Compute the delta with the previous value for drops
|
||||
local delta_drops = alerts_api.interface_delta_val(script.key, params.granularity, dropped_alerts, true --[[ skip first --]])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue