Fixes missing interface and host score timeseries

Fixes #5300
This commit is contained in:
Simone Mainardi 2021-05-12 17:17:55 +02:00
parent 043250cf25
commit 6ae7664de0
9 changed files with 34 additions and 23 deletions

View file

@ -547,6 +547,9 @@ function ts_dump.host_update_rrd(when, hostname, host, ifstats, verbose, config)
ts_utils.append("host:traffic", {ifid=ifstats.id, host=hostname,
bytes_sent=host["bytes.sent"], bytes_rcvd=host["bytes.rcvd"]}, when)
-- Score
ts_utils.append("host:score", {ifid=ifstats.id, host=hostname, score_as_cli = host["score.as_client"], score_as_srv = host["score.as_server"]}, when)
if(config.host_ts_creation == "full") then
ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)