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

Aperta
#5,898 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php, postgresql

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
1.2k
Fork
932
Merge medio
1g 11h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opnsense/plugins

Tutte le issue di opnsense/plugins

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.