mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
parent
1074059c2d
commit
1e82eb073b
10 changed files with 91 additions and 61 deletions
|
|
@ -31,7 +31,7 @@ local function check_slow_periodic_activity(params)
|
|||
for ps_name, ps_stats in pairs(scripts_stats) do
|
||||
local delta = alerts_api.interface_delta_val(script.key..ps_name --[[ metric name --]], params.granularity, ps_stats["num_is_slow"] or 0)
|
||||
|
||||
local info = alert_info(ps_name, (ps_stats["periodicity"] or 0) * 1000)
|
||||
local info = alert_info(ps_name, (ps_stats["max_duration_secs"] or 0) * 1000)
|
||||
|
||||
if delta > 0 then
|
||||
-- tprint({ps_name = ps_name, s = ">>>>>>>>>>>>>>>>>>>>>> TRIGGER"})
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ local function check_slow_periodic_activity(params)
|
|||
for ps_name, ps_stats in pairs(scripts_stats) do
|
||||
local delta = alerts_api.interface_delta_val(script.key..ps_name --[[ metric name --]], params.granularity, ps_stats["num_is_slow"] or 0)
|
||||
|
||||
local info = alert_info(ps_name, (ps_stats["periodicity"] - ps_stats["deadline_secs"]) * 1000)
|
||||
local info = alert_info(ps_name, ps_stats["max_duration_secs"] * 1000)
|
||||
|
||||
if delta > 0 then
|
||||
-- tprint({ps_name = ps_name, s = ">>>>>>>>>>>>>>>>>>>>>> TRIGGER"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue