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
Luca Deri
dab3c11681
Implemented flow update callback and extended flow information passed in callbacks
...
Selected cherry pick from https://github.com/ntop/ntopng/pull/677
2016-08-07 11:12:39 +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
Luca
516ca1a545
Added the ability to reload the housekeeping script with kill -HUP <ntopng PID>
...
Calling screpts at flow start/end/update
2016-07-29 20:17:10 +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
Luca Deri
9311ecf75f
Added the ability to execute a Lua script when flows (and soon hosts) are updated. (work in progress)
2016-07-29 00:22:11 +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
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
374d41387a
Implements a lua table slicing facility
2016-07-26 20:07:10 +02:00
Simone Mainardi
106ba35d2c
Removes redundant calls in alerts
2016-07-26 20:06:45 +02:00
Simone Mainardi
f9974cce38
Forcefully hides alerts
2016-07-25 12:22:46 +02:00
Simone Mainardi
9834f1bfdb
Rearranges user add/edit panes
2016-07-25 11:49:37 +02:00
Simone Mainardi
0de66219d0
Sets flow vlan to DOT1Q if no inner vlan is detected
...
If no {SRC,DST}_VLAN field is set, then the outer vlan values
found in Q-in-Q DOT1Q_{SRC,DST}_VLAN are used (if set) to populate
flow vlan.
Fixes #650
2016-07-24 14:26:08 +02:00
Simone Mainardi
128c11652c
Implements alerts toggle from the web interface
2016-07-22 18:56:07 +02:00
Luca
ad047d63d0
Fixed SNMP issues in host detail
...
Improved SSL readme
2016-07-19 20:12:38 +02:00
Simone Mainardi
f261b9c6b1
Merge remote-tracking branch 'upstream/dev' into dev
2016-07-18 20:07:32 +02:00
Simone Mainardi
f3bff5d2aa
Minor change
...
This change is propaedeutic to Professional commit:
commit 1e1d453a1e96cc4394a0b94a7efe0b5857b1b1eb
Author: Simone Mainardi <simonemainardi@gmail.com>
Date: Mon Jul 18 20:04:53 2016 +0200
Improves the usability of historical charts
2016-07-18 20:05:40 +02:00
Luca Deri
6393adc446
Improvements for host SNMP location through the SNMP bridge MIB
2016-07-18 19:27:04 +02:00
Simone Mainardi
57c4d74733
Changes to improve behavior consistency with current implementation
2016-07-18 10:55:15 +02:00
Simone Mainardi
cd5f3dbfd6
Merge branch 'log-preferences' of https://github.com/mathieufrh/ntopng into mathieufrh-log-preferences
2016-07-18 10:31:13 +02:00
Simone Mainardi
cf431236fa
Improves host configuration when VLANS are enabled
...
Fixes #661
2016-07-15 15:36:40 +02:00