mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implemented DES and added to LocalHostStats
This commit is contained in:
parent
23269cb1b6
commit
3b5a5e2507
5 changed files with 83 additions and 50 deletions
|
|
@ -358,12 +358,12 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
|
||||
-- Contacted Hosts Behaviour
|
||||
if host["contacted_hosts_behaviour"] then
|
||||
if(host.contacted_hosts_behaviour.hll_value > 0) then
|
||||
io.write(hostname.." [value: "..tostring(host.contacted_hosts_behaviour.hll_value).."][prediction: "..tostring(host.contacted_hosts_behaviour.hw_prediction).."]\n");
|
||||
if(host.contacted_hosts_behaviour.value > 0) then
|
||||
io.write(hostname.." [value: "..tostring(host.contacted_hosts_behaviour.value).."][prediction: "..tostring(host.contacted_hosts_behaviour.prediction).."][lower_bound: "..tostring(host.contacted_hosts_behaviour.lower_bound).."][upper_bound: "..tostring(host.contacted_hosts_behaviour.upper_bound).."]\n");
|
||||
end
|
||||
|
||||
ts_utils.append("host:contacts_behaviour", {ifid=ifstats.id, host=hostname,
|
||||
value=(host.contacted_hosts_behaviour.hll_value or 0), prediction=(host.contacted_hosts_behaviour.hw_prediction or 0)}, when)
|
||||
value=(host.contacted_hosts_behaviour.value or 0), prediction=(host.contacted_hosts_behaviour.prediction or 0)}, when)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue