mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added dns time series (#2487)
This commit is contained in:
parent
f10f24a436
commit
c8a95d9476
11 changed files with 62 additions and 21 deletions
|
|
@ -201,6 +201,20 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
flows_as_client = host["host_unreachable_flows.as_client"]},
|
||||
when, verbose)
|
||||
|
||||
--Number of dns packets sent
|
||||
ts_utils.append("host:dns_sent", {ifid = ifstats.id, host = hostname,
|
||||
queries_packets = host["dns"]["sent"]["num_queries"],
|
||||
replies_ok_packets = host["dns"]["sent"]["num_replies_ok"],
|
||||
replies_error_packets =host["dns"]["sent"]["num_replies_error"]},
|
||||
when, verbose)
|
||||
|
||||
--Number of dns packets rcvd
|
||||
ts_utils.append("host:dns_rcvd", {ifid = ifstats.id, host = hostname,
|
||||
queries_packets = host["dns"]["rcvd"]["num_queries"],
|
||||
replies_ok_packets = host["dns"]["rcvd"]["num_replies_ok"],
|
||||
replies_error_packets = host["dns"]["rcvd"]["num_replies_error"]},
|
||||
when, verbose)
|
||||
|
||||
-- Total number of alerts
|
||||
ts_utils.append("host:total_alerts", {ifid = ifstats.id, host = hostname,
|
||||
alerts = host["total_alerts"]},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue