Arianna Avanzini
9e5d3f9345
modules/top_structure.lua: correctly handle VLANs
...
This commit allows VLANs to be correctly handled when putting
together the top talkers JSON to be stored.
2015-06-23 12:59:29 +02:00
Luca Deri
3d8f3ac927
Added check to see if it can help with https://github.com/ntop/ntopng/issues/63
2015-06-21 21:56:56 +02:00
Arianna Avanzini
86ab3f0585
src/Lua.cpp: finally add minimal SQL interface for Lua
...
This commit adds a Lua interface that allows Lua scripts to directly
query flows with a simple SQL-like statement. This also enforces the
checks and data conversions in the iface_ports_list.lua script.
2015-06-19 16:48:09 +02:00
Arianna Avanzini
f514a4db87
src/FlowsManager.cpp: add infrastructure for filtering flow queries
...
This commit adds a first option to filter results of queries
on flows so that only relevant info can be returned. This for
now only introduces a PORTS filter. This helps reducing the
load on the Lua stack when the flows limit is high.
2015-06-16 13:16:07 +02:00
Luca
b2b92a4da1
Fixed shaper rate in host view
2015-06-15 15:53:20 +02:00
Luca Deri
2b49967ad7
Updated about message box
2015-06-13 17:26:11 +02:00
Arianna Avanzini
2aac293316
modules/lua_utils.lua: enforce checks on version before doing ariths
...
This commit lets the version2int() function better check types
and convertibility before performing arithmetics to get the
version hash.
2015-06-12 15:48:36 +02:00
Luca Deri
73811618f8
Enhanced about box with platform bits
2015-06-11 18:20:36 +02:00
Luca Deri
a4516274c9
Merge pull request #44 from ipernet/host-graph-fix
...
Fix duplicate handling to fix broken graphs for hosts
2015-06-09 22:05:27 +02:00
Guillaume Simon
62bc62edcb
Fix for bringing back the top stats table for hosts graphs
2015-06-09 19:02:32 +02:00
Guillaume Simon
6339498751
Fix duplicate handling to fix broken traffic graph for hosts
2015-06-09 18:31:34 +02:00
Arianna Avanzini
0b815a6ed2
iface_ports_list.lua: get flows info only per-host when possible
...
This commit lets the iface_ports_list.lua invoke getFlowsInfo()
with the host filter when the host parameter is not nil, so that
the Lua stack is not overloaded when possible.
2015-06-09 09:15:19 +02:00
Luca
8dca0d42cf
Reworked the way ntopng checks for updates: code improved, responses are cached
2015-06-02 12:52:43 +02:00
Luca Deri
629b2d11b4
Fix on the version box
2015-05-30 16:56:03 +02:00
Luca Deri
41fd595850
Fixed /json/ path (using numeric interface name)
...
Replaced "Home" in menu with an icon
2015-05-30 13:14:51 +02:00
Luca
dc746b45b3
Various optimizations for malware flow categorization (-c)
2015-05-28 19:04:03 +02:00
Luca
2036b15d9a
Fixed old getCategory call
...
Added fix to harden code
2015-05-28 16:13:55 +02:00
Luca Deri
58d05f5454
Menu update with new links
2015-05-27 23:07:21 +02:00
Luca Deri
192983d35c
An alert is genererated when a malware site is visited
2015-05-27 21:27:31 +02:00
Luca Deri
e2b04d128f
Revamped host categorization and moved to Google Safe Browsing for detecting safe and malware sites
2015-05-27 17:58:26 +02:00
Luca Deri
1b47d05507
Optimized preferences redis read
...
DNS resolution is not slower on embedded boxes
Preferences layout renders better when resizing the windows
2015-05-27 00:35:28 +02:00
Luca Deri
1895d5aca9
Fixed typo
2015-05-26 09:02:16 +02:00
Arianna Avanzini
b519ad39b6
scripts/lua/admin/prefs.lua: add basic RRD configuration options
...
This commit adds a first implementation of configuration preferences for RRDs.
Different config options are selectable for network interfaces RRDs and
other RRDs. This addresses issue #33 .
2015-05-26 02:54:17 +02:00
Arianna Avanzini
d7ae1e5929
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2015-05-25 08:58:54 +02:00
Arianna Avanzini
317c9b5d54
scripts/lua/modules/lua_utils.lua: fix precision of bytes
...
This commit lets the bytesToSize() function perform the requested
rounding even when returning bytes. This also fixes the symbol
used in that case as a measure unit so that it is consistent.
2015-05-25 08:57:49 +02:00
Luca Deri
c5a779198c
Win32 fixes.
...
RRDs are now created starting from one day back and not one year back as apparently this causes a loop inside rrd_update
2015-05-24 09:40:52 +02:00
Arianna Avanzini
5d41caf380
src/HistoricalInterface.cpp: add limit for number of retrieved rows
...
This commit lets the Historical Interface retrieve rows only with
a limited amount. This should work around current stats retrieval
issues. The max number of retrievable rows is split across queries
equally.
2015-05-22 01:04:53 +02:00
Arianna Avanzini
3474104f51
if_stats.lua: don't show packet dump tab for historical interface
...
This commit lets the interface tab menu show the packet dump tab
only if the interface is not historical.
2015-05-22 01:03:51 +02:00
Arianna Avanzini
02f5637014
scripts/lua/modules/graph_utils.lua: various fixes
...
This commit fixes indentation and scoping for some of the blocks
in drawRRD(). It also lets the function handle complex RRD names.
2015-05-22 00:31:27 +02:00
Arianna Avanzini
2b3cbc7fc7
scripts/lua/flows_stats.lua: do not show dropdown for network historical chart
...
This commit removes the dropdown for network historical charts
because, as of now, only bytes are stored in RRD for networks.
2015-05-22 00:30:28 +02:00
Arianna Avanzini
6b3a99d841
alert_utils.lua: handle slashes in interface names
...
This commit lets the per-interface alert code handle weird interface
names, e.g. collector interface names which contain slashes.
2015-05-21 16:56:19 +02:00
Arianna Avanzini
1503b1f3c0
alert_utils.lua: handle non existance of last dump
...
This commit handles the case where the last dump used for
interface alerts does not exist.
2015-05-21 16:06:18 +02:00
Arianna Avanzini
5a484cf53b
scripts/lua/flows_stats.lua: add historical chart when showing network
...
This commit changes the flows display script so that it adds a navigation
bar when flows are grouped by network and allows to access a Historical
tab showing the traffic volume chart for that network.
This addresses issue #31 .
2015-05-21 00:37:42 +02:00
Arianna Avanzini
f655cc2804
scripts/lua/if_stats.lua: implement per-interface alerts
...
This commit implements customizable threshold-based alerts which
are handled per-interface. Alerts are accessible via the alerts
tab of the interface menu of the web GUI.
This addresses issue #21 .
2015-05-20 23:10:55 +02:00
Arianna Avanzini
d1442c7d86
scripts/lua/aggregated_hosts_stats.lua: fix quoting typo
...
This commit fixes a typo in the aggregated hosts script so that data
are now displayed correctly.
Signed-off-by: Yuri Francalacci <yuri@ntop.org>
2015-05-19 09:15:39 +02:00
Luca Deri
2b252633cb
Changes to the shaper GUI
2015-05-19 01:02:15 +02:00
Arianna Avanzini
1e88d773f1
scripts/lua/host_details.lua: correctly handle vlan when setting alert prefs
...
This commit lets the code handling per-host alert preferences
correctly handle the host's vlan when storing the value in Redis.
2015-05-18 11:59:25 +02:00
Arianna Avanzini
7ee3b06c21
scripts/lua/host_details.lua: add missing binding for per-host alert prefs
...
This commit adds missing binding code which handles per-host alert
prefs refresh. This also changes Lua binding code and core ntopng
code to suit the new prefs system.
2015-05-18 11:47:00 +02:00
Luca Deri
dbb8ff7d2d
Added fix in report for long URLs
2015-05-18 08:28:38 +02:00
Luca Deri
6630297dcd
Policer update
2015-05-18 01:15:55 +02:00
Luca
a1cb0ac1c8
Added geohash mapping to flows
2015-05-15 17:56:04 +02:00
Luca
44fa5f271b
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2015-05-15 12:44:22 +02:00
Luca Deri
1156208993
Improvements on traffic shaping
2015-05-12 00:56:39 +02:00
Luca
773383e48b
Fixed bug in hosts alert generation: alerts were not generated due to invalid redis key
2015-05-11 16:05:55 +02:00
Arianna Avanzini
fcec28bcd0
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2015-05-11 15:23:32 +02:00
Arianna Avanzini
6b9007ef52
if_stats.lua: use MB for the max size of dump files
...
This commit changes the measure unit for the max size of dump
files to MB so that it more user-friendly. This addresses
issue #20 .
2015-05-11 15:22:27 +02:00
Luca
d7a8bc1394
Moved alerts preference from Alerts -> Config host tab
2015-05-11 15:19:33 +02:00
Luca Deri
bf2d12f700
Merge pull request #17 from rwhalb/dev
...
The version information for nDPI now appears in the 'About ntopng' pa…
2015-05-11 14:57:39 +02:00
Luca
9fc1069cf0
Alerts are now shown for localhosts only
2015-05-11 14:21:36 +02:00
lorenzobrunetti
9b3ce26911
Trigger Hosts Alerts only for remote hosts
...
Now Hosts alerts can be generated only for remote hosts, this can be
set under a new tab preference under the alert section.
2015-05-10 18:57:34 +02:00