Move host score to 5mins

This commit is contained in:
emanuele-f 2020-02-25 12:49:35 +01:00
parent d22bccc547
commit ab1aaeb38f
5 changed files with 18 additions and 0 deletions

View file

@ -214,6 +214,12 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
ts_utils.append("host:traffic", {ifid=ifstats.id, host=hostname,
bytes_sent=host["bytes.sent"], bytes_rcvd=host["bytes.rcvd"]}, when, verbose)
if((host["score"] ~= nil) and (host["score"] > 0)) then
ts_utils.append("host:score", {ifid=ifstats.id, host=hostname,
score = host["score"]
}, when, verbose)
end
-- Number of flows
ts_utils.append("host:active_flows", {ifid=ifstats.id, host=hostname,
flows_as_client = host["active_flows.as_client"],