Implemented SNMP counter and gauge decoding


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8707 a02cd0c1-8e76-42e1-a119-56f9641475e2
if_stats.lua: fix sorting in Protocols interface stats

Currently, the Protocols interface stats are not being sorted
correctly. This commit lets new rows be inserted and not appended
during an update and signals to the TableSorter plugins that an
update has been performed whenever it is. It also removes a
timeout on the cache update of the TableSorter plugins. The commit
also lets TableSorter correctly parse network throughput cells
content and sort the content accordingly.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8714 a02cd0c1-8e76-42e1-a119-56f9641475e2
Implemented hint in SNMP library to decode MAC addresses and format them properly


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8715 a02cd0c1-8e76-42e1-a119-56f9641475e2
Lua.cpp: enforce checks on top minute stats interface functions

This commit adds checks on dereferenced objects in functions
exposing insert/retrieval operations for top minute stats to Lua
scripts. Checks are enforced also in the public methods of the
StatsManager class.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8716 a02cd0c1-8e76-42e1-a119-56f9641475e2
Utils: fix mkdir_tree() function

The function could not correctly handle paths with a trailing
separator and, although creating the folder tree correctly, it
returned EEXIST in that case, which could be interpreted by callers
as an error.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8717 a02cd0c1-8e76-42e1-a119-56f9641475e2
StatsManager: cleanup

This commit cleans up mostly checking for error conditions while
handling top minute stats.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8718 a02cd0c1-8e76-42e1-a119-56f9641475e2
StatsManager.cpp: implement top minute stats purging

This commit adds a public method which allows deleting stats
older than a certain number of days for a given interface. A Lua
callback is also added. The new method is called from the daily
callback to purge stats older than an year.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8719 a02cd0c1-8e76-42e1-a119-56f9641475e2
StatsManager.cpp: move table creation to constructor

The creation of top minute stats table is a one-time operation
and can be attempted during construction of a StatsManager,
therefore reducing per-minute overhead.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8720 a02cd0c1-8e76-42e1-a119-56f9641475e2
Minor change in label used for flooding alarms
Initial work on support on charting using http://nvd3.org/



git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8722 a02cd0c1-8e76-42e1-a119-56f9641475e2
Fix for aligning input text fields in preferences on the right


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8723 a02cd0c1-8e76-42e1-a119-56f9641475e2