Commit graph

38 commits

Author SHA1 Message Date
Emanuele Faranda
afdfac1c9c Lua scripts parameters validation (#970)
* partial work

* Migrate 'mode' parameters

* Migrate alerts types

* Fix some interface ids

* Partial work

* Partial work

* End of work for _GET parameters

* Work in progress

* Add support for special parameters

* Preferences validation

* Fixes and improvements

* Enforce interger validation
2017-02-08 12:25:35 +01:00
Simone Mainardi
6b03576d1d Fixes realtime traffic dashboard for ZMQ interfaces
Addresses #958
2017-02-06 18:14:30 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Simone Mainardi
f349ca344e Reworks alerts menu 2016-12-28 19:54:05 +01:00
Simone Mainardi
eca2c41049 Reworks alert counters (WIP)
Alert counters are now kept in sync only for engaged alerts.
Each host will show the current number of engaged alerts.
This alleviates the complexity of constantly keep the numbers
synchronized with the database.

Todo: see how to handle counters for flow alerts and past alerts.
2016-12-24 16:21:50 +01:00
Simone Mainardi
482c2ca834 Implements counter resets
This commits adds two reset buttons to the interface page.

One button allows the reset of all interface counters, namely,
packets and bytes received, packets dropped, and the number of
flows exported and dropped (when mysql or elasticsearch is enabled).

The other button allows the reset of only the drops.
2016-12-21 12:48:04 +01:00
Luca Deri
3892eacd6a Computed ZMQ message drops reported in the interface stats. The latest nprobe is required for ZMQ stats otherwise the value will be zero 2016-12-17 17:09:19 +01:00
Simone Mainardi
a8c00f785d Changes alert badges colors on the basis of severity
Implements #829
2016-11-25 12:46:25 +01:00
Simone Mainardi
156a39c645 Caches alerts counts to reduce queries 2016-11-21 15:41:07 +01:00
Luca
bbfcc42994 Reworked locales and menu 2016-11-17 19:38:41 +01:00
Luca Deri
1f8e05d750 Added TZ in pages footer 2016-11-14 21:03:16 +01:00
Luca Deri
65239694a9 Added ZMQ flow stats
Removed unused interface drops method
2016-11-10 21:10:56 +01:00
Simone Mainardi
1d8ae7ede7 Fixes missing chart with view interfaces 2016-10-15 15:21:13 +02:00
Luca Deri
7d4a712ec7 Reported number of devices in ntopng footer 2016-10-08 20:48:23 +02:00
Simone Mainardi
a280e53862 Completes the migration to the stateful alerts 2016-09-06 16:36:05 +02:00
Simone Mainardi
bca1e0a126 Implements MySQL flow export statistics 2016-08-29 09:41:55 +02:00
Simone Mainardi
e8707bcaa9 Implements counters for export dropped flows (wip)
ntopng optionally exports flows to MySQL or ES. This change
keeps track of possible drops (e.g., due to a slow mysql server)
and shows them to the user.
2016-08-26 19:27:46 +02:00
Luca Deri
bd45142fa9 Typedef change 2016-08-10 15:54:23 +02:00
Luca Deri
a3d36634e3 Code cleanup 2016-08-10 15:53:39 +02:00
Luca
fdf1384081 Fixes after merge 2016-08-10 09:46:05 +02:00
Luca
bcadcf033f Removed view interface (work in progress will be reintroduced after cleanup) 2016-08-10 09:37:10 +02:00
Simone Mainardi
0b1f12f928 Improves jsonencode function 2016-08-09 18:17:39 +02:00
Simone Mainardi
52abb7659a Handles per-interface alerts via the AlertsManager
This commit moves the global ntopng-wide alerts to
interfaces' AlertsManager s
2016-08-09 16:47:36 +02:00
Simone Mainardi
1fd53f9c24 Converts network_load.lua response to standard (properly escaped) JSON 2016-08-08 19:31:51 +02:00
Simone Mainardi
60266edfd3 Fixes an interface naming issue on windows
TODO: check if other parts are affected.
The issue is caused by windows that names intefaces such
as \Devices\PF_{xxx} and backslashes invalidates the json
2016-07-26 20:08:00 +02:00
Simone Mainardi
128c11652c Implements alerts toggle from the web interface 2016-07-22 18:56:07 +02:00
Simone Mainardi
9ce96af916 Prevents localstats to be overwritten in interfaces aggregation
Fixes #552
2016-05-06 11:02:44 +02:00
Luca Deri
89ea597be3 Added ability to report ZMQ bps/pps as exported in latest nProbe 2016-04-24 15:05:06 +02:00
Luca
2fb0e863fe Fixed inter-arrival time in flows
Updated (C)
2016-04-19 11:06:39 +02:00
Luca Deri
8b150132d2 Added interface TCP stats 2016-04-11 00:02:37 +02:00
Luca Deri
4a5948ff27 Added tab pane for traffic profiles 2015-11-07 18:28:05 +01:00
Simone Mainardi
866d849a12 added is_view flag in json returned by network_load.jua. This is required to correctly render real-time traffic in the pro version 2015-10-16 18:12:06 +02:00
Luca Deri
c884b96566 Improved network statistics for bridged interfaces 2015-09-18 23:19:04 +02:00
Luca Deri
4dd80d4778 Partial rework of NetworkInterfaceView (work in progress) 2015-09-16 00:41:29 +02:00
Luca Deri
d5e19ec8af Removed -F sqlite: due to this the historical interface is not finally gone and it is now possible to move forward to properly re-implement it 2015-08-15 00:09:12 +02:00
Luca
f9cc43d281 Added packet drop/interface full errors in bridge mode 2015-08-12 17:11:19 +02:00
Luca Deri
6aa141caa9 Code cleanup: removed code used very seldom such as host aggregations/contacts. This should reduce memory usage and make ntopng faster
Little progresses towards MySQL support
2015-08-08 01:13:59 +02:00
Luca
730d76b9f5 Initial import from SVN 2015-04-30 12:22:35 +02:00