mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix bad time resolution of values for some host exported timeseries
- active_flows.as_client - active_flows.as_server - total_flows.as_client - total_flows.as_server - contacts.as_client - contacts.as_server - DNS, TCP, ICMP stats Fixes #2776
This commit is contained in:
parent
69758c0280
commit
2b2a74af79
18 changed files with 153 additions and 42 deletions
|
|
@ -248,29 +248,26 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
replies_error_packets =host["dns"]["rcvd"]["num_replies_error"]},
|
||||
when, verbose)
|
||||
|
||||
if (host["ICMPv4"] ~= nil) then
|
||||
if (host["ICMPv4"]["0,0"] ~= nil) then
|
||||
--Number of ICMP ECHO reply packets
|
||||
ts_utils.append("host:echo_reply_packets", {ifid = ifstats.id, host = hostname,
|
||||
packets_sent = host["ICMPv4"]["0,0"]["sent"],
|
||||
packets_rcvd = host["ICMPv4"]["0,0"]["rcvd"]},
|
||||
when, verbose)
|
||||
end
|
||||
if (host["ICMPv4"]["8,0"] ~= nil) then
|
||||
--Number of ICMP ECHO request packets
|
||||
ts_utils.append("host:echo_packets", {ifid = ifstats.id, host = hostname,
|
||||
packets_sent = host["ICMPv4"]["8,0"]["sent"],
|
||||
packets_rcvd = host["ICMPv4"]["8,0"]["rcvd"]},
|
||||
when, verbose)
|
||||
end
|
||||
end
|
||||
|
||||
-- Number of dns packets rcvd
|
||||
ts_utils.append("host:dns_qry_rcvd_rsp_sent", {ifid = ifstats.id, host = hostname,
|
||||
queries_packets = host["dns"]["rcvd"]["num_queries"],
|
||||
replies_ok_packets = host["dns"]["sent"]["num_replies_ok"],
|
||||
replies_error_packets = host["dns"]["sent"]["num_replies_error"]},
|
||||
when, verbose)
|
||||
|
||||
if(host["icmp.echo_pkts_sent"] ~= nil) then
|
||||
ts_utils.append("host:echo_packets", {ifid = ifstats.id, host = hostname,
|
||||
packets_sent = host["icmp.echo_pkts_sent"],
|
||||
packets_rcvd = host["icmp.echo_pkts_rcvd"]},
|
||||
when, verbose)
|
||||
end
|
||||
|
||||
if(host["icmp.echo_reply_pkts_sent"] ~= nil) then
|
||||
ts_utils.append("host:echo_reply_packets", {ifid = ifstats.id, host = hostname,
|
||||
packets_sent = host["icmp.echo_reply_pkts_sent"],
|
||||
packets_rcvd = host["icmp.echo_reply_pkts_rcvd"]},
|
||||
when, verbose)
|
||||
end
|
||||
|
||||
-- Number of udp packets
|
||||
ts_utils.append("host:udp_pkts", {ifid = ifstats.id, host = hostname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue