mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Moved traffic between network timeseries in minute
This commit is contained in:
parent
a7ffcbbd2f
commit
cbef4a5dc8
6 changed files with 30 additions and 24 deletions
|
|
@ -71,21 +71,7 @@ function ts_dump.subnet_update_rrds(when, ifstats, verbose)
|
|||
local subnet_stats = interface.getNetworksStats()
|
||||
|
||||
for subnet,sstats in pairs(subnet_stats) do
|
||||
if ntop.isPro() and not isEmptyString(ntop.getPref("ntopng.prefs.intranet_traffic_rrd_creation") or "") then
|
||||
for second_subnet, traffic in pairs(sstats["intranet_traffic"]) do
|
||||
if traffic.bytes_sent ~= 0 or traffic.bytes_rcvd ~= 0 then
|
||||
ts_utils.append("subnet:intranet_traffic",
|
||||
{ ifid = ifstats.id,
|
||||
subnet = subnet,
|
||||
subnet_2 = second_subnet,
|
||||
bytes_sent = traffic.bytes_sent,
|
||||
bytes_rcvd = traffic.bytes_rcvd }, when)
|
||||
end
|
||||
|
||||
network.select(sstats.network_id)
|
||||
network.resetTrafficBetweenNets()
|
||||
end
|
||||
|
||||
if ntop.isPro() then
|
||||
-- Check to see if the values are inserted
|
||||
if not sstats["score_behavior"] or
|
||||
not sstats["traffic_rx_behavior"] or
|
||||
|
|
@ -132,7 +118,7 @@ function ts_dump.subnet_update_rrds(when, ifstats, verbose)
|
|||
{ifid=ifstats.id, subnet=subnet,
|
||||
anomaly=anomaly}, when)
|
||||
|
||||
::continue::
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue