Commit graph

65 commits

Author SHA1 Message Date
Simone Mainardi
4aa4212630 Implement OOO/Retransmissions Stats
Implements #1072

Additional implementations:
- l7 statistics for networks

Additional fixes and improvements:
- local networks traffic statistics were saved twice
- 5min.lua was not properly coded to keep into account user
preferences
_ 5min.lua has been simplified

TODO:
- ooo / retransmissions / lost counters should be accounted in the C engine or
serialized to disk as idle hosts may determine a decrease in the
aforementioned counters.
2017-04-05 19:34:58 +02:00
emanuele-f
4dffa882ef Implement TCP flags timeseries for network interfaces 2017-04-04 19:09:41 +02:00
emanuele-f
9cb52e631a Move other 5 minutes activities to dedicated script 2017-03-04 13:04:59 +01:00
emanuele-f
2affcfb208 Clean callback scripts code 2017-03-04 12:39:48 +01:00
emanuele-f
adf62c7f65 Add periodic five minutes script 2017-03-03 11:29:32 +01:00
Simone Mainardi
4a583c30a4 Fixes version check 2017-02-28 10:55:15 +01:00
emanuele-f
9044babe1e Use time thresholds rather then time diff 2017-02-28 10:18:17 +01:00
emanuele-f
cb7cee36ff Limit SNMP query time in periodic stats dump 2017-02-28 10:18:17 +01:00
emanuele-f
d47674757e Add preference to enable SNMP interfaces dump 2017-02-28 10:18:17 +01:00
emanuele-f
5f7762ade5 Implement Redis Host Pools counters dump 2017-01-26 12:19:12 +01:00
emanuele-f
5c305ba6a1 Add GUI side support for host pools stats 2017-01-26 11:53:24 +01:00
Simone Mainardi
bc8177c78c Purge expired CP users every 5 minutes 2017-01-25 23:31:58 +01:00
emanuele-f
21d2c0bd3f Limit minute.lua top talkers lifetime to reduce memory footprint 2017-01-25 20:03:32 +01:00
Simone Mainardi
ba1c1df41b Implements configurable active local hosts cache dump interval 2017-01-23 12:21:50 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Simone Mainardi
658f272cd5 Optimizes rrd updates 2017-01-05 23:19:39 +01:00
Luca
f50f61f9fc MySQL DB improvements
Cached slack preference
Optimized DHCP cache read
2016-12-28 19:20:06 +01:00
Simone Mainardi
758db35671 Implements MySQL open_files_limit check
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
2016-12-09 17:14:25 +01:00
Simone Mainardi
f1e60106d6 Checks enterprise edition before writing flow devices stats
Fixes #771
2016-09-29 19:03:14 +02:00
Simone Mainardi
cd0db380e3 Reworked flow activities calculation 2016-09-27 18:06:41 +02:00
Luca Deri
ebd31f321d Minor cosmetic changes to the host activities 2016-09-18 10:37:34 +02:00
emanuele-f
a883c83170 Fix user activity RRA sizes, make RRA preferences configurable and disable activity log by default 2016-09-16 22:06:27 +02:00
Simone Mainardi
6bdc494b0f Minor refresh after restoring numFlows and numHosts 2016-08-25 19:14:45 +02:00
emanuele-f
8f9d4c55b9 Implement SMA and WMA filters and tune for VPN activity 2016-08-22 18:22:50 +02:00
emanuele-f
81b83d96dc Dump user activity rrd to text 2016-08-16 04:37:51 +02:00
emanuele-f
d21681592a Update counters each minute and other changes 2016-08-16 01:39:41 +02:00
Luca Deri
d85555296f Minor code cleanup 2016-08-15 11:52:07 +02:00
Luca Deri
1117d14750 Cleanup 2016-08-15 10:21:38 +02:00
emanuele-f
ed6c42d510 Export activity data to rrd 2016-08-13 23:56:59 +02:00
emanuele-f
f974c350ea Add rrd activity log 2016-08-13 00:55:03 +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
Simone Mainardi
845250f5a0 Reworks thresholds alerts management to allow function override
Functions will be overridden in the professional version
2016-07-29 19:44:18 +02:00
Simone Mainardi
85c5beb545 Implements alerts on a per-interface per-vlan basis
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
2016-07-27 22:10:17 +02:00
Luca Deri
c25a9a632d Fixed SNMP wrapping bug
Added ability to graph flow-devices port I/O
2016-07-12 15:51:26 +02:00
Simone Mainardi
95a4618c17 Fixes alert scan that was causing possible issues in periodic scripts
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
2016-06-04 18:22:13 +02:00
Luca Deri
5aaa458c2e Fix in minute script to decrease memory usage with large networks 2016-05-02 22:32:34 +02:00
Luca
2fb0e863fe Fixed inter-arrival time in flows
Updated (C)
2016-04-19 11:06:39 +02:00
Simone Mainardi
0ca318ac4d Implements VLAN statistics
Comuptes VLAN statistics and store data to RRD files.
2016-04-12 18:01:05 +02:00
Luca Deri
ddbfacaefb Various fixes to host categorization
Added optional parameter for ntop.getInfo() call
2016-01-05 11:07:12 +01:00
Simone Mainardi
06ef8d21ab Implements historical RRDs for traffic categories
Traffic categorization can be optionally saved to RRDs
on a per-host basis.
2016-01-04 19:18:22 +01:00
Luca
bd66cbcdcd Work in progress toward per-minute stats 2015-12-15 18:47:58 +01:00
Luca Deri
0c8c1c7ade Removed debug message 2015-11-10 22:33:11 +01:00
Simone Mainardi
83574e1a9d Escapes possible spaces and special charaters from profile names to create RRDS 2015-11-09 20:14:34 +01:00
Simone Mainardi
c839e85d6e Stores Profiles RRDs on a minute basis 2015-11-09 19:17:17 +01:00
Luca Deri
3b0d35a822 Fixed empty network name
Various minor optimizations
2015-11-08 21:06:18 +01:00
Simone Mainardi
164f94dd90 Merge remote-tracking branch 'upstream/dev' into dev 2015-11-07 10:54:13 +01:00
Luca
86b793d006 Harvested interface view code and replaced with simpler one 2015-11-07 10:47:29 +01:00
Simone Mainardi
09ac01a1ee Stores local network traffic statistics on a minute basis
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.
2015-11-06 17:49:36 +01:00
Simone Mainardi
595b2989c8 Saves Local Network Statistics to RRDs
Local Network Statistics (ingress, egress, and inner bytes)
are saved to RRD files. Web visualizations can be obtained from these RRDS.
2015-11-05 17:19:54 +01:00