mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
parent
f689f50e2a
commit
a7d7d6e2ed
5 changed files with 0 additions and 18 deletions
|
|
@ -400,8 +400,6 @@ function driver:append(schema, timestamp, tags, metrics)
|
|||
return false
|
||||
end
|
||||
|
||||
-- NOTE: successful writes are counted into ntop_rrd_update in C
|
||||
|
||||
if not ntop.exists(rrdfile) then
|
||||
ntop.mkdir(base)
|
||||
if not create_rrd(schema, rrdfile) then
|
||||
|
|
|
|||
|
|
@ -225,13 +225,6 @@ schema:addMetric("bytes_rcvd")
|
|||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("host:score", {step=300, rrd_fname="score_v2", metrics_type=ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("host")
|
||||
schema:addMetric("score")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("host:active_flows", {step=300, rrd_fname="active_flows", metrics_type=ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("host")
|
||||
|
|
|
|||
|
|
@ -214,12 +214,6 @@ 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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue