Commit graph

652 commits

Author SHA1 Message Date
Luca Deri
7ee8f8e560 Improved host activity labels
Fixed login.lua that was ignoring in redirect some parameters
2016-08-26 10:40:43 +02:00
Simone Mainardi
6bdc494b0f Minor refresh after restoring numFlows and numHosts 2016-08-25 19:14:45 +02:00
Simone Mainardi
13875ec189 Adds numHosts to hosts retrieval for proper pagination
numHosts was suppressed in an earlier commit but this caused
issues with pagination of results.
2016-08-25 19:05:35 +02:00
Simone Mainardi
fe5c6377aa Adds numFlows to flows retrieval for proper pagination
numFlows was suppressed in an earlier commit but this caused
issues with pagination of results.
2016-08-25 18:30:27 +02:00
Simone Mainardi
01172f94fc Adds focus on the login username field
Implements #711
2016-08-25 16:57:31 +02:00
Simone Mainardi
58f1a902ea Disables UI tabs while loading results
This is in order to prevent an impatient user from clicking on
multiple tabs without waiting for the competion of his/her actions
2016-08-25 16:16:24 +02:00
Simone Mainardi
55d8658046 Fixes a regexp pattern error on the newest Chrome
Fixes #700
2016-08-25 11:01:43 +02:00
Luca Deri
74d5553f1b Added activities tab on host details 2016-08-24 22:03:12 +02:00
Luca Deri
29bd6af0fd Fix for missing step multiplication 2016-08-24 18:31:02 +02:00
emanuele-f
9889f12abb Add new user activity profiles and populate them 2016-08-23 01:36:33 +02:00
emanuele-f
4d53a4c960 Implement web and metric filters 2016-08-21 20:14:28 +02:00
Luca
274921ee5c Reimplemented view: interface, and Paginator code.
Minor code cleanup
2016-08-18 13:44:24 +02:00
Luca
650ce6e202 Removed Batman (mesh network) support as does not seem to be very popular in the ntopng community 2016-08-17 15:57:40 +02:00
emanuele-f
a9b27ca995 Visualize activity data using cubism.js horizon graph 2016-08-17 00:55:25 +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
Simone Mainardi
12f24a87b4 Implements stateful alerts in C and sqlite 2016-08-11 19:56:49 +02:00
Simone Mainardi
781b3d4988 Improves y-axis labels in community historical graphs
fixes #682
2016-08-11 11:42:22 +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 Deri
cc78c4f37e Various script fixes 2016-08-10 15:06:17 +02:00
Simone Mainardi
9cf1866e2f Fixes an error in community mode (due to NetworkInterfaceView removal)
WARNING: Script failure [/Users/simone/code/ntopng/scripts/lua/iface_hosts_list.lua][/Users/simone/code/ntopng/scripts/lua/modules/lua_utils.lua:164: attempt to get length of local 'h' (a nil value)]
2016-08-10 14:58:09 +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
12aa4c7399 Fixes after removal of the NetworkInterfaceView code 2016-08-10 11:21:08 +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
431b0d96ed Implements a function to obtain suppressed alerts redis keys 2016-08-09 19:17:42 +02:00
Simone Mainardi
b9b22593f4 Removes a debug table print 2016-08-09 18:26:32 +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
246c58c1ac Implements stateful threshold host alerts 2016-08-08 16:53:45 +02:00
Simone Mainardi
42b588be48 Adds the new lua alerts API 2016-08-05 19:12:57 +02:00
Simone Mainardi
199b418037 Implements db-based new generation alerts with lua API (wip) 2016-08-05 19:11:34 +02:00
Simone Mainardi
770bc4c6fc Security Fix: users enumeration
A user reported us

"""
I would like to report a possible security issue in ntopng.

When connected with a regular, unprivileged user, it is possible to force-navigate to the URL: http://192.168.2.176:3000/lua/admin/validate_new_user.lua?user=<anyuser>&networks=0.0.0.0/0,::/0
Due to this, it is possible to replace <anyuser> with a list of users and enumerate the users that exist in the system.
"""

This commit fixes the issue
2016-08-05 17:53:34 +02:00
Luca Deri
89d6fa301a Added minimal json encoding function
Modified bash path in ntopng-add-user.sh
2016-08-05 11:03:56 +02:00
Luca Deri
45e0c01377 Fix for #672 2016-08-03 15:05:38 +02:00
valentina
982881b1e2 Changes and rework for SIP and RTP protocol. 2016-08-01 23:54:03 +02:00
Simone Mainardi
f1d3dbb455 Stateful host alerts now 'require' a lua API
This commit is a companion of professional version commit

commit 2b6e5358a71179a728edc0a8e591ffb883d626ab
Date:   Mon Aug 1 22:07:37 2016 +0200

    Refactors stateful host alerts to provide an API
2016-08-01 22:08:34 +02:00
Simone Mainardi
e674c73a2e Simplifies the API for stateful host alerts 2016-08-01 18:22:43 +02:00
valentina
d9b565e44b Other changes for SIP protocol. 2016-07-31 18:59:31 +02:00
valentina
4ad4fe04bd changes for SIP protocol. 2016-07-31 09:46: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
64e98766e7 Minor fix to improve robustness of alerts re arming 2016-07-28 16:01:05 +02:00
Simone Mainardi
2ec5c8e798 Replaces sub with gsub for string substitution 2016-07-28 15:48:41 +02:00
Simone Mainardi
a31225e2ab Sets vlan 0 to implicit for nagios alerts
This is to ensure backward compatibility with previous
nagios alert format.
2016-07-28 15:45:11 +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
Simone Mainardi
fe28c46079 Makes the edit user preferences tabbable 2016-07-27 11:38:36 +02:00