mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fixes influxdb hosts timeseries
This commit is contained in:
parent
1ddbc694eb
commit
15dd277bab
2 changed files with 21 additions and 19 deletions
|
|
@ -8,8 +8,10 @@ local ts_data = {}
|
|||
local function addHostInfo(tags)
|
||||
-- Checking if the host is in memory
|
||||
local host = hostkey2hostinfo(tags.host)
|
||||
local serialize_by_mac = ntop.getPref(string.format("ntopng.prefs.ifid_" .. tags.ifid ..
|
||||
".serialize_local_broadcast_hosts_as_macs")) == "1"
|
||||
|
||||
if not isEmptyString(host["host"]) then
|
||||
if not isEmptyString(host["host"]) and serialize_by_mac then
|
||||
local host_info = interface.getHostMinInfo(host["host"], host["vlan"])
|
||||
if (host_info ~= nil) then
|
||||
-- Add the label if available
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue