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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user