mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Added asset_utils trace for debugging purposes
This commit is contained in:
parent
d2f5186fa2
commit
f17ae37f5c
1 changed files with 5 additions and 0 deletions
|
|
@ -289,6 +289,11 @@ end
|
|||
function asset_utils.insertHost(entry, version, ifid)
|
||||
local query = nil
|
||||
entry = updateData(entry, ifid, "host")
|
||||
if not isIPv4(entry["ip"]) or not isIPv6(entry["ip"]) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Detected Asset without IP Address:\n")
|
||||
tprint(entry)
|
||||
return
|
||||
end
|
||||
|
||||
if hasClickHouseSupport() then
|
||||
query = string.format("INSERT INTO %s " ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue