Created timeseries for blacklisted hosts

This commit is contained in:
Luca Deri 2021-04-18 15:28:31 +02:00
parent adc00cbdc3
commit 76afff76d1
7 changed files with 43 additions and 11 deletions

View file

@ -364,6 +364,14 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
if enable_debug then
io.write(hostname.. "\n")
end
if(host.num_blacklisted_flows ~= nil) then
ts_utils.append("host:num_blacklisted_flows", {ifid=ifstats.id, host=hostname,
flows_as_client = host.num_blacklisted_flows.as_client,
flows_as_server = host.num_blacklisted_flows.as_server},
when)
end
-- Contacted Hosts Behaviour
if host["contacted_hosts_behaviour"] then
if(host.contacted_hosts_behaviour.value > 0) then