os-ntopng: ntopng 7.0.d20260922 floods InfluxDB 1.8 with DROP/CREATE CONTINUOUS QUERY (~150/s), ~16 MB/s disk writes

Đang mở
#5,898 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

  1. Services -> ntopng: enable ntopng, with the timeseries driver set to
    InfluxDB (InfluxDB 1.8.10, database "ntopng", on a separate host).
  2. Wait 2-5 minutes.
  3. 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
  4. See tens of thousands of DROP/CREATE CONTINUOUS QUERY statements, and
    meta.db's timestamp changing every few seconds.
  5. 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

Image

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.