Commit graph

253 commits

Author SHA1 Message Date
Luca
12aad4e7a7 Removed old API call
Tiny changes to XSS check code
2015-12-27 19:09:14 +01:00
Luca
11f8c934d0 Reworked hosts listing in order to avoid/limit out-of-memory issues
Implemented aggregation of hosts and flows when using views
2015-12-27 18:55:50 +01:00
Luca
df957f9e55 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2015-12-26 15:41:50 +01:00
Luca
440a2c8329 Reworked flow listing by sorting flows in memory before they are pased to Lua. This prevents Lua from using too much memory (in particular with limited-memory hosts or large sites with many flows) 2015-12-26 12:34:45 +01:00
Simone Mainardi
1edb469294 Allows values greather than 65k seconds for idle timeouts 2015-12-24 15:57:10 +01:00
Simone Mainardi
03bfb38b3d Fixes a minor typo 2015-12-20 17:02:45 +01:00
Simone Mainardi
8b01d5b2c3 Adds nagios alert deactivation notifications
Nagios services are notified when ntopng
alerts are deactivated
2015-12-20 16:19:15 +01:00
Simone Mainardi
63bcbb12c7 Adds status information to nagios alerts
Alert status information is propagated together with nagios alerts.
This status will be used by nagios to handle service statuses.
2015-12-19 15:08:18 +01:00
Simone Mainardi
adf41511eb Merge remote-tracking branch 'upstream/dev' into dev 2015-12-18 20:06:36 +01:00
Simone Mainardi
d0b580f934 Adds Re-Arm Time for Alerts
A re-arm period is added to alarms so that
back-to-back alarms can be silenced.
2015-12-18 19:59:03 +01:00
Luca
2e576e2ca0 Initial category mapping 2015-12-18 10:21:00 +01:00
Luca
97a5e2f3cc Categorization improvements 2015-12-18 09:32:48 +01:00
Luca
3e6fec8d84 Added support for http-based categorization (work in progress) 2015-12-18 08:32:15 +01:00
Simone Mainardi
bf67cc7f51 Adds required lua dependency, fixes #320 2015-12-15 09:33:14 +01:00
Simone Mainardi
ce25732104 Adds Nagios Alerts support (Pro Version)
Nagios alerts support has been added via NSCA (Nagios Service Check Acceptor).
Nagios NSCA alerts configuration can be set at runtime via the
preferences page of the UI. The running instance of ntopng is
notified asynchronously upon preference changes.
2015-12-12 19:37:36 +01:00
Simone Mainardi
51b7702b44 Refactored UI preferences code 2015-12-12 19:12:05 +01:00
Simone Mainardi
2dae1dc8a8 Adds TODOs for network-based flood detection 2015-12-12 15:11:25 +01:00
Luca
3c8e133015 Added threasholds to breakdown bars for displaying alerts when crossed
Better depict of DNS query/replies that have now theresholds
2015-12-09 14:59:51 +08:00
Simone Mainardi
2045df7053 Reworks MySQL queries according to the new schema 2015-12-07 18:39:35 +01:00
Simone Mainardi
0c92e286d4 Reworks MySQL structure and adds interface support to dumped flows
Existing MySQL naming convention makes two separate tables for each interface monitored. Table names are flows4_<ifid> and flows6_<ifid>. Ifid is a unique integer identifier chosen by ntopng.

Present commit simplifies this structure and make just two tables, namely flows4 and flows6, and add an extra column to store the interface names. I do not think that storing the integer interface id is good: it is just a number that only make sense inside ntopng. Using interface names would yield more (re)usable data.

Committed code transparently migrates old tables into the new ones. Old flows are migrated into the new tables, and old tables are dropped.
2015-12-07 17:20:12 +01:00
Simone Mainardi
2228a8529c Adds ntopng instance name (#283)
ntopng instance name can be specified using command line parameter
--instance-name. If no parameter is specified, instance name defaults
to the current host name.

this information is exported to MySQL and ES.
2015-12-07 15:32:00 +01:00
Simone Mainardi
b41f7c28b4 Implements the alerting system on a per-network basis
Multiple commits have been squashed here:
- Adds alert configuration page for local networks
- Cleans unused branch
- Adds alert settings for local networks
- Implements alerts for networks
2015-12-03 19:24:32 +01:00
Simone Mainardi
1d785936d3 Removed redundant local network data initialization 2015-12-03 19:20:08 +01:00
Luca Deri
8507c1e2ed Minor profile change 2015-11-27 23:26:07 +01:00
Simone Mainardi
1ba346fc46 Visualises traffic profile information on historical tables
Traffic profile is queried from the database and possibly
shown as an extra field in the INFO column for historical data
2015-11-26 17:10:35 +01:00
Simone Mainardi
08ecb143d2 Fixes max/min/avg/tot value computation on some graphs 2015-11-10 16:54:43 +01:00
Simone Mainardi
edf813f7d9 Adds interface names to graph labels
RRD graphs for interface views are more clear when their layout is  stacked.
In this commit lua function singlerrd2json is made more general. An additional
input parameters allows the user to toggle interface names from labels.
By default, interface names are not shown.
2015-11-10 15:06:09 +01:00
Simone Mainardi
71b390ec47 Adds MySQL support for traffic profiles
Traffic profile information is dumped to MySQL.
2015-11-10 11:36:55 +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
Simone Mainardi
b8a0d6ac14 Skips 1m selection button for some RRDs
1m selection button is disabled for graphs showing RRDs sampled every 5 minutes (e.g., nDPI application RRDs)
2015-11-08 23:25:56 +01:00
Simone Mainardi
7930930360 Fixes javascript error on missing RRDs
Missing RRDs when displaying applications per interface (e.g., http://localhost:3000/lua/if_stats.lua?if_name=en0&page=historical&rrd_file=all&graph_zoom=1m)
were preventing the page from being rendered.
2015-11-08 22:48:23 +01:00
valentina
77426f7ece Added RTP protocol information to flow statistics 2015-11-08 00:42:07 +01:00
Luca Deri
4a5948ff27 Added tab pane for traffic profiles 2015-11-07 18:28:05 +01:00
Luca Deri
714352b25e Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2015-11-07 16:22:17 +01:00
Luca Deri
28e32c72c9 Fixed dumping to tap interfaces 2015-11-07 16:22:01 +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
Luca
0cb43bbb8e Removed network icon when no hosts stats are available 2015-11-06 12:28:32 +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
Simone Mainardi
0bb7075a86 Fix: access nil lua table entries
Access to a nil table entry was occurring when reading all rrds
2015-10-28 21:44:22 +01:00
Simone Mainardi
ce0af8ed9a Stacked chart for physical interfaces traffic
Traffic statistics are shown as stacked for interface views
(Enhancement #58)
2015-10-25 19:27:43 +01:00
Luca Deri
006da523c0 Updated Lua/JSON module 2015-10-24 09:14:13 +02:00
Luca Deri
71afffaf7c Additional conversion fix for #246 2015-10-21 22:51:31 +02:00
Luca Deri
724be6b83a Added explicit numeric conversion to see if it can help with #246 2015-10-21 22:42:53 +02:00
Luca Deri
ede9ce914d Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2015-10-20 20:37:57 +02:00
Luca Deri
8ca2d55c8d Added fix for handling failures while retrieving data from RRDs (#243) 2015-10-20 20:37:04 +02:00
valentina
63cf72f636 Added SIP protocol information in flow details 2015-10-20 18:02:48 +02:00
Luca Deri
598f128200 Implemented traffic profiles (pro) 2015-10-19 00:48:55 +02:00