mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
This commit is contained in:
parent
1a99e709a1
commit
a3f64be34b
11 changed files with 153 additions and 1071 deletions
|
|
@ -400,14 +400,6 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
}, when)
|
||||
end
|
||||
|
||||
-- Number of udp packets
|
||||
ts_utils.append("host:udp_pkts", {
|
||||
ifid = ifstats.id,
|
||||
host = hostname,
|
||||
packets_sent = host["udp.packets.sent"],
|
||||
packets_rcvd = host["udp.packets.rcvd"]
|
||||
}, when)
|
||||
|
||||
-- Tcp RX Stats
|
||||
ts_utils.append("host:tcp_rx_stats", {
|
||||
ifid = ifstats.id,
|
||||
|
|
@ -426,14 +418,6 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
lost_packets = host["tcpPacketStats.sent"]["lost"]
|
||||
}, when)
|
||||
|
||||
-- Number of TCP packets
|
||||
ts_utils.append("host:tcp_packets", {
|
||||
ifid = ifstats.id,
|
||||
host = hostname,
|
||||
packets_sent = host["tcp.packets.sent"],
|
||||
packets_rcvd = host["tcp.packets.rcvd"]
|
||||
}, when)
|
||||
|
||||
-- Contacts
|
||||
if host["contacts.as_client"] then
|
||||
ts_utils.append("host:contacts", {
|
||||
|
|
@ -642,6 +626,12 @@ function ts_dump.light_host_update_rrd(when, hostname, host, ifstats, verbose)
|
|||
bytes_sent = host["bytes.sent"],
|
||||
bytes_rcvd = host["bytes.rcvd"]
|
||||
}, when)
|
||||
ts_utils.append("host:packets", {
|
||||
ifid = ifstats.id,
|
||||
host = hostname,
|
||||
packets_sent = host["packets.sent"],
|
||||
packets_rcvd = host["packets.rcvd"]
|
||||
}, when)
|
||||
|
||||
-- Score
|
||||
ts_utils.append("host:score", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue