ntopng checks MySQL for the value of open_files_limit and engages
and alert if the worst case number of open files is greater
than or equal to the 80% of open_files_limit
Interfaces were handled globally before this commit. Now
alerts can be configured per-interface. So for example alerts
for the same host 193.168.2.1 can be handled differently on multiple interfaces.
Old alerts configured should be automatically migrated thanks to script startup.lua
This commits also paves the way to introduce stateful alerts in the professional version
Method scanAlerts was called inside a loop over the interfaces in minute.lua.
Since scanAlerts was looping over the interfaces as well, this was causing
interfaces to be deselected from the outer loop.
This commit fixes the issues by forcing scanAlerts to receive an input interface.
Fixes#582
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.