mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
add checkpoint details level
This commit is contained in:
parent
e43f75522a
commit
6661c6ef53
13 changed files with 71 additions and 43 deletions
|
|
@ -1856,7 +1856,7 @@ function check_interface_alerts(ifid, working_status)
|
|||
return
|
||||
end
|
||||
|
||||
local checkpoints = interface.checkpointInterface(ifid, working_status.checkpoint_id) or {}
|
||||
local checkpoints = interface.checkpointInterface(ifid, working_status.checkpoint_id, "high") or {}
|
||||
local old_entity_info = checkpoints["previous"] and j.decode(checkpoints["previous"])
|
||||
local new_entity_info = checkpoints["current"] and j.decode(checkpoints["current"])
|
||||
|
||||
|
|
@ -1902,7 +1902,7 @@ function check_networks_alerts(ifid, working_status)
|
|||
goto continue
|
||||
end
|
||||
|
||||
local checkpoints = interface.checkpointNetwork(ifid, tonumber(sstats.network_id), working_status.checkpoint_id) or {}
|
||||
local checkpoints = interface.checkpointNetwork(ifid, tonumber(sstats.network_id), working_status.checkpoint_id, "high") or {}
|
||||
|
||||
local old_entity_info = checkpoints["previous"] and j.decode(checkpoints["previous"])
|
||||
local new_entity_info = checkpoints["current"] and j.decode(checkpoints["current"])
|
||||
|
|
@ -1951,7 +1951,7 @@ function check_host_alerts(ifid, working_status, host)
|
|||
if (working_status.configured_thresholds[entity_value] ~= nil)
|
||||
or (working_status.configured_thresholds["local_hosts"] ~= nil) then
|
||||
|
||||
local checkpoints = interface.checkpointHost(ifid, entity_value, working_status.checkpoint_id) or {}
|
||||
local checkpoints = interface.checkpointHost(ifid, entity_value, working_status.checkpoint_id, "high") or {}
|
||||
|
||||
old_entity_info = checkpoints["previous"] and j.decode(checkpoints["previous"])
|
||||
new_entity_info = checkpoints["current"] and j.decode(checkpoints["current"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue