os-ntopng: ntopng 7.0.d20260922 floods InfluxDB 1.8 with DROP/CREATE CONTINUOUS QUERY (~150/s), ~16 MB/s disk writes
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php, postgresql
- Lĩnh vực
- databases, observability
Hướng nghiên cứu
Start by reading the os-ntopng plugin code and its ntopng configuration entry points; the report does not name specific files or tests. Reproduce with InfluxDB 1.8 and the listed timeseries settings, then trace why continuous queries are repeatedly dropped and created. Done means ntopng creates the queries at startup or when the schema changes, without sustained query churn or disk writes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Important notices
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- The title contains the plugin to which this issue belongs
Describe the bug
After ntopng was updated to 7.0.d20260922,1 (installed Mon Oct 12 17:48
2026), it continuously drops and recreates its InfluxDB continuous
queries at roughly 150 statements per second. Each statement rewrites
InfluxDB's meta.db, which causes ~16 MB/s of sustained disk writes
(~800 writes/s, ~160 flushes/s on the host) and raised my NVMe SSD from
42C to 53C. Stopping ntopng stops it immediately.
Last known working version: ntopng-6.6.d20260829,1.
The same timeseries settings worked fine before the update.
I have not tested with opnsense-revert yet.
The repo still offers the same version today (pkg rquery '%n-%v' ntopng
returns ntopng-7.0.d20260922,1 after pkg update -f), so there is no
newer build to try.
To Reproduce
- Services -> ntopng: enable ntopng, with the timeseries driver set to
InfluxDB (InfluxDB 1.8.10, database "ntopng", on a separate host). - Wait 2-5 minutes.
- On the InfluxDB host run:
journalctl -u influxdb --since "5 min ago" | grep "Executing query" | grep -oE 'query="[A-Za-z]+ [A-Za-z]+' | sort | uniq -c | sort -rn - See tens of thousands of DROP/CREATE CONTINUOUS QUERY statements, and
meta.db's timestamp changing every few seconds. - Disable ntopng: the statements and the disk writes stop at once.
Expected behavior
Continuous queries are created once at startup (or when the schema
changes), not dropped and recreated continuously.
Screenshots
Relevant log files
InfluxDB journal, 5-minute window:
- 25,236 DROP CONTINUOUS QUERY
- 22,188 CREATE CONTINUOUS QUERY
- 435 each of SHOW DATABASES, SHOW RETENTION POLICIES and SELECT last
(some of these may come from Grafana dashboards, not ntopng)
meta.db is only ~60 KB but was rewritten between two checks 10 seconds
apart (02:02:00 and 02:02:10).
Actual data volume is small: ~100 points/s, ~34 write requests/min,
12,413 series, 422 MB data directory.
The InfluxDB request log shows the sender's user agent as
"ntopng 7.0.261007/amd64/FreeBSD 15.1", while pkg reports
7.0.d20260922,1.
Additional context
-
I've created an issue on the ntopng's repository as they say that a newer ntopng version will fix this issue
https://github.com/issues/created?q=is%3Aissue+state%3Aclosed+archived%3Afalse+author%3A%40me+sort%3Aupdated-desc&issue=ntop%7Cntopng%7C11084&issue_global_id=I_kwDOAhO8o88AAAABWwKdKQ -
ntopng is not crash-restarting: its PID and elapsed time keep growing
across checks, so the loop appears to be inside the running process. -
Timeseries settings: host timeseries Full, host L7 per application +
per category, interface L7 per application + per category, ASN and
Countries on, flow exporter resolution 5m, Internals off. -
Restoring an older Grafana VM did not change anything, and the writes
stop only when ntopng is disabled. -
Workaround: disable ntopng or switch the timeseries driver to RRD.
Environment
OPNsense 26.7.8_2 (amd64) , FreeBSD 15.1
os-ntopng 1.3, ntopng 7.0.d20260922,1
Hardware: CPU: Intel(R) Xeon(R) W-2235 CPU @ 3.80GHz
NIC: Intel 82580 Gigabit Network Connection
InfluxDB 1.8.10 (Debian 13 VM on Proxmox), Samsung 990 PRO 1TB NVMe
- Ngôn ngữ chính
- PHP
- Star
- 1.2k
- Fork
- 932
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opnsense/plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
www/squid: configctl proxy stop returns before Squid exits, so stop+start (e.g. Monit restart) failsĐang mởsupport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
opnsense/plugins#5983 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveCó thể đã có người làm @fraenki đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
opnsense/plugins#5973 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)Có thể đã có người làm @bringha1 đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của opnsense/plugins
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#7881 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
iruzen-dono/workless#117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
magicsunday/webtrees-docker#285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky browser test: AreaHeadersTest 'shows Counting on the way while deferred tab counts load'Đang mởarea/tests type/bug when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
WP-CLI 3.0 fixes the cron lock and core download bugs described in the handbookCó thể đã có người làm @mayankmajeji đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
WordPress/hosting-handbook#521 ·