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 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 Lua bindings to the CommunitiesManager to retrieve
a Lua table with the active hosts of a community. This also adds
binding functions to the Host and NetworkInterface class so that
it can iterate efficiently over hosts of a community.
This commit introduces a class to handle host communities, that are
a logical representation of clusters of hosts that fall under the
same administrative domain. This commit also adds a new command line
option to specify a file containing aggregation rules and code to
parse such file with an adequate syntax:
communityX@id1=net1,net2,net3
communityY@id2=net4,net5,net6
...
Communities are unused now. Further commits will introduce reports
to represent communities and describe them with stats.
This addresses issue #75.
This commit adds two constants representing a possible limit
for flows and hosts to be loaded into the Lua stack. Note that
the constants are still unused. This change is made towards
future modifications for issue #26.
This commit adds iterators to the Host class to the purpose of
allowing to get information just for local hosts. This also adds
Lua bindings to the Lua class so that scripts can access the
newly-added feature. This will help with issue #26.
Starting ntopng from outside the install folder can cause problems
if ntopng has not been installed but instead compiled from source.
This commit adds an install-dir parameter to allow to specify where
ntopng executable and scripts are so that variables are set
correctly. Please refer to the help to get info about the usage
of the option.
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 implements in the FlowsManager class a very basic parser
for SQL-like fixed-format strings, which allows for better flexibility.
This is a first step towards delegating to Lua scripts the construction
of the SQL statement.
This commit introduces FlowsManager, a class implementing a flexible
interface for filtering flows stats. This is to be complemented
with a high-level interface allowing the Lua part to filter stats,
but as of now simply replaces the current getActiveFlowsList()
interface.
This commit adds a first implementation of configuration preferences for RRDs.
Different config options are selectable for network interfaces RRDs and
other RRDs. This addresses issue #33.
This commit lets the Historical Interface retrieve rows only with
a limited amount. This should work around current stats retrieval
issues. The max number of retrievable rows is split across queries
equally.
This commit adds missing binding code which handles per-host alert
prefs refresh. This also changes Lua binding code and core ntopng
code to suit the new prefs system.