Local network traffic statistics are stored in RRDS on
a minute basis. Network traffic statistics are per interface.
If an interface has never seen a network, then no RRD is created.
Added various fixes to networks view including the ability to visualize per-network graphs
Local hosts dumps (before purging) are now handled properly again.
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.
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.