mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
Fix speed test alerts not generated
This commit is contained in:
parent
fdadaca950
commit
35be58ede9
6 changed files with 19 additions and 8 deletions
|
|
@ -107,7 +107,13 @@ local function run_rtt_check(params, all_hosts, granularity)
|
|||
local operator = info.measurement.operator or "gt"
|
||||
|
||||
if params.ts_enabled then
|
||||
ts_utils.append(rtt_schema, {ifid = getSystemInterfaceId(), host = host.host, measure = host.measurement, millis_rtt = rtt}, when)
|
||||
local value = rtt
|
||||
|
||||
if info.measurement.chart_scaling_value then
|
||||
value = value * info.measurement.chart_scaling_value
|
||||
end
|
||||
|
||||
ts_utils.append(rtt_schema, {ifid = getSystemInterfaceId(), host = host.host, measure = host.measurement, millis_rtt = value}, when)
|
||||
end
|
||||
|
||||
active_monitoring_utils.setLastRttUpdate(key, when, rtt, resolved_host)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue