fix(scheduler): WG-Client-Tunnel-Check nutzt korrekten Tabellennamen — v1.3.11

runWGClientTunnelCheck fragte `wg_interfaces` ab — die Tabelle heißt überall
sonst `wireguard_interfaces`. Der Query-Fehler wurde verschluckt (if err return),
sodass der Check bei JEDEM 5-min-Lauf still no-opte (WG-Client-Tunnel-Monitoring
faktisch tot) und PostgreSQL alle 5 min `relation "wg_interfaces" does not exist`
ins Log schrieb (auf beiden Nodes). Fix: korrekter Tabellenname.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Debian
2026-08-02 20:58:22 +02:00
parent 09e6e0c4f7
commit 088910ee19
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
1.3.10 1.3.11

View File

@@ -622,7 +622,7 @@ func runWGClientTunnelCheck(ctx context.Context, pool *pgxpool.Pool, a *alerts.S
// Alle aktiven Client-Interfaces aus DB laden. // Alle aktiven Client-Interfaces aus DB laden.
type wgIface struct{ name string } type wgIface struct{ name string }
rows, err := pool.Query(ctx, rows, err := pool.Query(ctx,
`SELECT name FROM wg_interfaces WHERE mode = 'client' AND active = true ORDER BY name`) `SELECT name FROM wireguard_interfaces WHERE mode = 'client' AND active = true ORDER BY name`)
if err != nil { if err != nil {
return return
} }