mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed partially timeseries not showing
This commit is contained in:
parent
a2f891378d
commit
9be0364102
7 changed files with 112 additions and 72 deletions
|
|
@ -111,9 +111,11 @@ function ts_dump.asn_update_rrds(when, ifstats, verbose)
|
|||
|
||||
if ntop.isPro() then
|
||||
-- Score Behaviour
|
||||
ts_utils.append("asn:score_behavior", {ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["score_behavior"]["value"], lower_bound=asn_stats["score_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["score_behavior"]["upper_bound"]}, when)
|
||||
ts_utils.append("asn:score_behavior",
|
||||
{ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["score_behavior"]["value"],
|
||||
lower_bound=asn_stats["score_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["score_behavior"]["upper_bound"]}, when)
|
||||
|
||||
-- Score Anomalies
|
||||
local anomaly = 0
|
||||
|
|
@ -121,16 +123,22 @@ function ts_dump.asn_update_rrds(when, ifstats, verbose)
|
|||
anomaly = 1
|
||||
end
|
||||
|
||||
ts_utils.append("asn:score_anomalies", {ifid=ifstats.id, asn=asn, anomaly=anomaly}, when)
|
||||
ts_utils.append("asn:score_anomalies",
|
||||
{ifid=ifstats.id, asn=asn,
|
||||
anomaly=anomaly}, when)
|
||||
|
||||
-- Traffic Behaviour
|
||||
ts_utils.append("asn:traffic_rx_behavior", {ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["traffic_rx_behavior"]["value"], lower_bound=asn_stats["traffic_rx_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["traffic_rx_behavior"]["upper_bound"]}, when)
|
||||
ts_utils.append("asn:traffic_rx_behavior",
|
||||
{ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["traffic_rx_behavior"]["value"],
|
||||
lower_bound=asn_stats["traffic_rx_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["traffic_rx_behavior"]["upper_bound"]}, when)
|
||||
|
||||
ts_utils.append("asn:traffic_tx_behavior", {ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["traffic_tx_behavior"]["value"], lower_bound=asn_stats["traffic_tx_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["traffic_tx_behavior"]["upper_bound"]}, when)
|
||||
ts_utils.append("asn:traffic_tx_behavior",
|
||||
{ifid=ifstats.id, asn=asn,
|
||||
value=asn_stats["traffic_tx_behavior"]["value"],
|
||||
lower_bound=asn_stats["traffic_tx_behavior"]["lower_bound"],
|
||||
upper_bound = asn_stats["traffic_tx_behavior"]["upper_bound"]}, when)
|
||||
|
||||
-- Traffic Anomalies
|
||||
local anomaly = 0
|
||||
|
|
@ -138,7 +146,9 @@ function ts_dump.asn_update_rrds(when, ifstats, verbose)
|
|||
anomaly = 1
|
||||
end
|
||||
|
||||
ts_utils.append("asn:traffic_anomalies", {ifid=ifstats.id, asn=asn, anomaly=anomaly}, when)
|
||||
ts_utils.append("asn:traffic_anomalies",
|
||||
{ifid=ifstats.id, asn=asn,
|
||||
anomaly=anomaly}, when)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue