@@ -56,6 +56,7 @@ func main() {
|
||||
HostRoot: cfg.HostRoot,
|
||||
DataDir: cfg.DataDir,
|
||||
HostPID: cfg.HostSecurityPID,
|
||||
AURUser: cfg.HostAURUser,
|
||||
})
|
||||
ms.SetEventSink(func(ctx context.Context, ev monitor.Event) {
|
||||
nt.Broadcast(ctx, notify.Message{Title: "Monitor " + ev.To + ": " + ev.Name, Body: ev.Target + " changed from " + ev.From + " to " + ev.To + ". " + ev.Check.Message, Status: ev.To, MonitorID: ev.MonitorID})
|
||||
|
||||
Reference in New Issue
Block a user