Commit graph

15 commits

Author SHA1 Message Date
Simone Mainardi
6d396c33ed Fixes top talkers computation with VLAN-tagged traffic 2016-09-15 19:28:29 +02:00
Luca Deri
34dee98540 Fixed top talkers hosts 2016-08-10 13:00:52 +02:00
Simone Mainardi
116ffda7c8 Additional fixes after removal of NetworkInterfaceView 2016-08-10 12:23:14 +02:00
Luca Deri
1a154dc52f Per hosts alerts are not correctly initialized
Aded IPv6 label to top talkers to easily identify hosts with dual stack
2016-06-18 10:16:02 +02:00
Simone Mainardi
46a1edd046 Sets host symbolic names in mutual exclusion
This is to guarantee that symbolic names are left
in a consistent state after possible lua calls.

TODO: check: should get_name be mutex-protected?

Also fixes an issue with minute top talkers:

11/May/2016 11:06:21 [Lua.cpp:4617] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/minute.lua][/usr/share/ntopng/scripts/lua/modules/top_talkers.lua:215: attempt to concatenate field 'name' (a nil value)]
11/May/2016 11:09:22 [Lua.cpp:4617] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/minute.lua][/usr/share/ntopng/scripts/lua/modules/top_talkers.lua:185: attempt to concatenate field 'name' (a nil value)]
2016-05-12 00:26:02 +02:00
Simone Mainardi
926dfe283b Improves minute top statistics calculations
Minute top statistics were affected by issues when
processing local hosts that were serialized and
deserialized back.

This commit fixes this issue.
2016-04-29 13:36:26 +02:00
Luca
2fb0e863fe Fixed inter-arrival time in flows
Updated (C)
2016-04-19 11:06:39 +02:00
Simone Mainardi
677d32672d Fixes a nil-key table access
The following error has been fixed:
28/Dec/2015 11:40:02 [Lua.cpp:4447] WARNING: Script failure [/Users/simone/code/ntopng/scripts/callbacks/minute.lua][...s/simone/code/ntopng/scripts/lua/modules/top_talkers.lua:221: table index is nil]
2015-12-29 09:33:55 +01:00
Luca
5e556396d1 Implemented dummy interface (-i dummy) to be used only for debugging purposes for testing low-memory conditions and internal routines.
Updated scripts that were still using old API calls
2015-12-28 23:16:54 +01:00
Simone Mainardi
4d07a743ac refactored and verified minute top talkers generation code 2015-10-06 22:24:25 +02:00
Luca Deri
7e220133a5 Fixed some Lua errors that caused some scripts to fail and this prevent reports from being properly displayed (e.g. the ASNs report in the dashboard) 2015-08-27 00:42:41 +02:00
Arianna Avanzini
6633f21bdd scripts/lua/modules: always show "Other" talker
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.
2015-07-30 21:58:12 +02:00
Arianna Avanzini
42fe686df8 modules/top_talkers.lua: fix issue with json format for top talkers
This commit addresses a bug that was recently introduced in the top
talkers json when adding the "Other" talker.
2015-07-30 21:55:18 +02:00
Arianna Avanzini
3bf1897acf top_talkers.lua: add "Other" top talker for remaining talkers
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.
2015-07-17 01:21:24 +02:00
Luca
730d76b9f5 Initial import from SVN 2015-04-30 12:22:35 +02:00