Find a file
copilot-swe-agent[bot] 375703f6f0
Add comprehensive unit tests for Python SDK and additional Lua ts_common tests
- Add python/tests/test_ntopng_sdk.py with 86 unit tests covering:
  - Ntopng: constructor (auth_token / user+pass), request/post_request wrappers,
    all getter methods, debug flag, URL building
  - Interface: all data, alert, flow, L7/L4 and host methods
  - Host: get_host_data, get_l7_stats, get_dscp_stats (both directions), VLAN handling
  - Historical: all alert family delegates, timeseries, flows, conversations
- Fix bug in historical.py get_host_top_protocols(): self.ifid (int) was
  concatenated with strings without str() conversion, causing TypeError at runtime
- Add scripts/lua/modules/timeseries/tests/ts_common_test.lua with 11 test cases:
  - upsampleSerie: no-op when target <= source length, empty serie
  - calculateMinMax: basic, single element, NaN-skipping
  - calculateStatistics: counter (total*step), gauge+keep_total, gauge no-total, NaN-skipping
  - ninetififthPercentile: single element, all-NaN
- Register ts_common_test in the Lua test runner (run.lua)

Agent-Logs-Url: https://github.com/ntop/ntopng/sessions/32da23c3-306c-4100-9bbe-64b91191653b

Co-authored-by: lucaderi <4493366+lucaderi@users.noreply.github.com>
2026-03-26 21:58:34 +00:00
.github Update template 2026-02-25 16:39:41 +00:00
assets Implements MFA (Multi Factor Authentication) 2026-03-13 09:06:43 +01:00
attic Reworked timeseries handler 2026-03-24 16:41:04 +00:00
clickhouse Fix crash on broken clickhouse connection 2026-02-23 15:32:21 +01:00
contrib Adding erxupdate script to ntopng contrib repository (#5267) 2021-05-03 18:17:49 +02:00
doc Doc update 2026-03-24 11:13:07 +01:00
docker
fuzz Compilation fix 2026-02-03 22:05:11 +01:00
grafana Typo 2023-01-17 12:38:21 +00:00
hooks Disable code style check on pre commit 2023-11-02 17:16:24 +01:00
http_src Improved behavioral checks factory reset (#10220) 2026-03-26 17:33:17 +00:00
httpdocs Improved behavioral checks factory reset (#10220) 2026-03-26 17:33:17 +00:00
include Mark override 2026-03-26 18:45:28 +01:00
kibana Fixes documentation links 2025-02-17 12:19:21 +01:00
m4 Add first fuzzing harness (#7430) 2023-05-02 16:06:52 +02:00
packages Add postinst/prerm tracing 2026-03-25 16:23:00 +01:00
python Add comprehensive unit tests for Python SDK and additional Lua ts_common tests 2026-03-26 21:58:34 +00:00
scripts Add comprehensive unit tests for Python SDK and additional Lua ts_common tests 2026-03-26 21:58:34 +00:00
src Add alert_store_write impl 2026-03-26 12:58:36 +01:00
tests Rework threads labeling 2026-02-24 16:21:16 +01:00
third-party Use execSQLWrite for all write operations 2026-03-26 12:02:53 +01:00
tools Implemented the factory reset script (#9293) 2025-06-20 14:07:49 +02:00
.clang-format Add code formatter in the CI pipeline (#7372) 2023-04-07 16:19:57 +02:00
.eslintrc.json Revert "Added Vite to frontend builds" 2025-05-22 15:32:21 +02:00
.git-blame-ignore-revs Ignore the mass code reformatting commit in git blame (#7375) 2023-04-10 08:10:40 +02:00
.gitignore Added progress bar component to config import modal (#10201) 2026-03-23 16:28:20 +01:00
.gitmodules Add native clickhouse support for queries 2025-05-16 11:14:18 +02:00
.stylelintrc Fronted refactoring 2022-03-04 11:01:24 +01:00
autogen.sh Fix git branch parsing by replacing '/' with '-', sed will fail otherwise (#9887) 2025-12-22 09:21:16 +01:00
build.mjs Removed unused npm dependencies and reworked interface selector to select2 (#10119) 2026-03-02 18:56:18 +01:00
CHANGELOG.md Small fixes/adds to the changelog 2025-11-11 12:31:29 +01:00
CLAUDE.md Fixes import progress bar, ported manage data and applications to vue (#10209) 2026-03-24 14:16:26 +01:00
config.guess
configure.ac.in Add configure --with-debug 2026-01-22 10:46:38 +01:00
CONTRIBUTING.md Rewoked testing documentation 2024-11-28 11:36:44 +01:00
COPYING
create_dist.sh Update dist 2026-03-25 17:22:05 +01:00
LICENSE
Makefile.in Remove old entries 2026-03-12 12:17:48 +01:00
ntopng.8
package.json Implements MFA (Multi Factor Authentication) 2026-03-13 09:06:43 +01:00
README.md Added webinar video 2025-06-12 20:15:42 +02:00
skill_creator.md Fixes import progress bar, ported manage data and applications to vue (#10209) 2026-03-24 14:16:26 +01:00
sonar-project.properties Integration with SonarCube 2021-05-11 21:41:45 +02:00
test_llm.md Fixes import progress bar, ported manage data and applications to vue (#10209) 2026-03-24 14:16:26 +01:00
vite.ntopng.config.js Moved dist building to vite (#10064) 2026-02-19 18:21:47 +01:00

ntopng

Build Status Fuzzing Status Gurubase

Introduction

ntopng® is a web-based network traffic monitoring application released under GPLv3. It is the new incarnation of the original ntop written in 1998, and now revamped in terms of performance, usability, and features.

While you can read more about ntopng on the ntop web site (http://www.ntop.org), we suggest you to start reading the doc/README.md file for learning how to compile and use ntopng.

If instead of source code you prefer to use a pre-built package, please go to http://packages.ntop.org

We build binary packages for the following platforms:

  • Debian/Ubuntu LTS x64
  • CentOS/RedHat/RockyLinux/AlmaLinux Linux x64
  • Windows x64
  • RaspberryPI/Debian ARM
  • FreeBSD/OPNsense/pfSense

Enjoy.

Documentation

If you want to learn more about ntopng please visit the User's Guide and the API Documentation or watch our latest webinar.

Details

For more information about ntopng, please visit http://ntop.org

ntopng is a registered trademark in the US and EU.