Automatically install missing conntrack for enabled network collector
This commit is contained in:
@@ -223,7 +223,12 @@ func startAgentNetwork(config agentConfig) func() {
|
||||
if ctx.Err() != nil {
|
||||
return
|
||||
}
|
||||
snapshot := collectNetwork(ctx)
|
||||
snapshot := NetworkSnapshot{At: time.Now().Unix(), Flows: []NetworkFlow{}}
|
||||
if message := ensureNetworkDependency(); message != "" {
|
||||
snapshot.Error = message
|
||||
} else {
|
||||
snapshot = collectNetwork(ctx)
|
||||
}
|
||||
if time.Since(lastFirewall) >= 30*time.Second {
|
||||
lastFirewall = time.Now()
|
||||
raw, err := networkCommand(ctx, "nft", "-j", "list", "ruleset")
|
||||
|
||||
Reference in New Issue
Block a user