mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Implement continuous ping for selected interfaces (fix #5001)
This commit is contained in:
parent
64991252b8
commit
434f827ab6
4 changed files with 77 additions and 18 deletions
|
|
@ -27,7 +27,6 @@ local resolved_hosts = {}
|
|||
local function check_continuous(measurement, hosts, granularity)
|
||||
local plugins_utils = require("plugins_utils")
|
||||
local am_utils = plugins_utils.loadModule("active_monitoring", "am_utils")
|
||||
local ifname = nil
|
||||
|
||||
am_hosts[measurement] = {}
|
||||
resolved_hosts[measurement] = {}
|
||||
|
|
@ -35,6 +34,7 @@ local function check_continuous(measurement, hosts, granularity)
|
|||
for key, host in pairs(hosts) do
|
||||
local domain_name = host.host
|
||||
local ip_address = am_utils.resolveHost(domain_name)
|
||||
local ifname = host.ifname
|
||||
|
||||
if do_trace then
|
||||
print("["..measurement.."] Pinging address "..tostring(ip_address).."/"..domain_name.."\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue