mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implement engaged alerts and flow alerts timeseries
This commit is contained in:
parent
f6056a9d12
commit
69cd896a9f
17 changed files with 58 additions and 4 deletions
|
|
@ -300,6 +300,16 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
alerts = host["total_alerts"]},
|
||||
when, verbose)
|
||||
|
||||
-- Total number of flow alerts
|
||||
ts_utils.append("host:total_flow_alerts", {ifid = ifstats.id, host = hostname,
|
||||
alerts = host["num_flow_alerts"]},
|
||||
when, verbose)
|
||||
|
||||
-- Engaged alerts
|
||||
ts_utils.append("host:engaged_alerts", {ifid = ifstats.id, host = hostname,
|
||||
alerts = host["engaged_alerts"]},
|
||||
when, verbose)
|
||||
|
||||
-- Contacts
|
||||
ts_utils.append("host:contacts", {ifid=ifstats.id, host=hostname,
|
||||
num_as_client=host["contacts.as_client"], num_as_server=host["contacts.as_server"]}, when, verbose)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue