Fixed DNS report

This commit is contained in:
Luca Deri 2021-02-28 12:59:54 +01:00
parent 1a4c7c2388
commit ed938dc6c1
2 changed files with 27 additions and 20 deletions

View file

@ -358,6 +358,10 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
-- Contacted Hosts Behaviour
if host["contacted_hosts_behaviour"] then
if(host.contacted_hosts_behaviour.hll_value > 0) then
io.write(hostname.." [value: "..tostring(host.contacted_hosts_behaviour.hll_value).."][prediction: "..tostring(host.contacted_hosts_behaviour.hw_prediction).."]\n");
end
ts_utils.append("host:contacts_behaviour", {ifid=ifstats.id, host=hostname,
value=(host.contacted_hosts_behaviour.hll_value or 0), prediction=(host.contacted_hosts_behaviour.hw_prediction or 0)}, when)
end