Implements sent and rcvd TCP seqs counters per host

Implements #2503
This commit is contained in:
Simone Mainardi 2019-05-20 20:02:06 +02:00
parent 22b4d1d7bc
commit e22d13533a
9 changed files with 123 additions and 107 deletions

View file

@ -251,13 +251,13 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
packets_sent = host["udp.packets.sent"],
packets_rcvd = host["udp.packets.rcvd"]},
when, verbose)
-- Tcp Stats
ts_utils.append("host:tcp_stats", {ifid = ifstats.id, host = hostname,
retransmission_packets = host["tcp.packets.retransmissions"],
out_of_order_packets = host["tcp.packets.out_of_order"],
lost_packets = host["tcp.packets.lost"]},
when, verbose)
retransmission_packets = host["tcpPacketStats.sent"]["retransmissions"] + host["tcpPacketStats.rcvd"]["retransmissions"],
out_of_order_packets = host["tcpPacketStats.sent"]["out_of_order"] + host["tcpPacketStats.rcvd"]["out_of_order"],
lost_packets = host["tcpPacketStats.sent"]["lost"] + host["tcpPacketStats.rcvd"]["lost"]},
when, verbose)
-- Number of TCP packets
ts_utils.append("host:tcp_packets", {ifid = ifstats.id, host = hostname,