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

オープン
#5,898 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, postgresql

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
PHP
スター
1.2k
フォーク
932
平均マージ
1日 11時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opnsense/plugins のほかの issue

opnsense/plugins の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。