This commit adds code both to the Lua bindings and scripts to
allow to list Communities and hosts belonging to the communities.
This allows to list hosts of just a community and get the related
info in real time.
This commit lets the "Other" talker be always shown in the top talkers
report of a web interface if its traffic value is not zero. This also
lets the "Other" talker accumulate traffic also for hosts above the
maximum number of top talkers.
This commit adds Lua bindings necessary to per-community RRD generation.
This also adds code to the minute Lua script to aggregate traffic data
for a community (just bytes sent and received as of now) and store
it in an ad-hoc RRD.
This commit adds to the retrieved top talkers a final entry
grouping stats for all remaining talkers which are not included
in the top ones. This helps get a feeling of the proportion
between the traffic of the top talkers and that of other talkers.
This commit lets the hosts interaction map show most relevant
hosts first. This plays along well with the limit introduced
with commit 7d3bbc1. This addresses issue #42.
This commit changes the host_details Lua script to let the Historical
data be viewed even if the host is no more in memory if a get parameter
is specified.
In verbose mode, the minute callback prints info about all hosts
which are being processed. However, the custom print() function
used by ntopng does not directly handle booleans, which causes
runtime errors if the script is run in verbose mode. This commit
fixes the issue by converting boolean values to strings prior to
printing them.
This commit lets the minute callback use the newly-introduced
getLocalHostsInfo() method to retrieve info about local hosts only.
In this way it has a lower probability to overload the Lua stack.
This helps with issue #26.
This commit helps reducing the extent of the hosts interaction map
by implementing a simple threshold as a workaround to avoid unusable
maps for large networks. This is a first workaround for #42, while
the map will be completely reworked shortly.
This commit adds protocol visualization in the Historical tab
of the network flows view, therefore enabling for better
analysis of per-network traffic.
This commit adds a Lua interface that allows Lua scripts to directly
query flows with a simple SQL-like statement. This also enforces the
checks and data conversions in the iface_ports_list.lua script.
This commit adds a first option to filter results of queries
on flows so that only relevant info can be returned. This for
now only introduces a PORTS filter. This helps reducing the
load on the Lua stack when the flows limit is high.
This commit lets the iface_ports_list.lua invoke getFlowsInfo()
with the host filter when the host parameter is not nil, so that
the Lua stack is not overloaded when possible.