Moved network discovery to monitoring from dashboard (#9041)

* Fixed dist and error codes in scss

* Moved network discovery to monitoring from dashboard
This commit is contained in:
GabrieleDeri 2025-03-17 14:17:17 +01:00 committed by GitHub
parent ee47ccb4d9
commit 1f99754da4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 102 additions and 97 deletions

View file

@ -317,6 +317,11 @@ function asset_utils.insertHost(entry, ifid)
return
end
if isEmptyString(entry["manufacturer"]) then
entry["manufacturer"] = "unknown"
tprint("Empty manufacturer")
end
if hasClickHouseSupport() then
query = string.format("INSERT INTO %s " ..
"(type, key, ifid, ip, mac, vlan, network, name, device_type, manufacturer, first_seen, last_seen, version, json_info) " ..