mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Write 0 in timeseries for unreachable monitored hosts
This commit is contained in:
parent
aab41dd66e
commit
947fee33b2
3 changed files with 10 additions and 0 deletions
|
|
@ -135,6 +135,11 @@ local function run_rtt_check(params, all_hosts, granularity)
|
|||
if(hosts_rtt[key] == nil) then
|
||||
if(do_trace) then print("[TRIGGER] Host "..ip.."/"..key.." is unreacheable\n") end
|
||||
triggerRttAlert(ip, key, 0, 0, granularity)
|
||||
|
||||
if params.ts_enabled then
|
||||
-- Also write 0 in its timeseries to indicate that the host is unreacheable
|
||||
ts_utils.append(rtt_schema, {ifid = getSystemInterfaceId(), host = host.host, measure = host.measurement, millis_rtt = 0}, when)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue