In-memory dedupe resets on pod restart; recovery then no-ops and leaves stale open tickets. UP now falls back to a GLPI search for an unsolved ticket for that monitor. Ticket: https://projects.knownelement.com/issues/824
This commit is contained in:
+5
-1
@@ -216,7 +216,11 @@ func (b *bridge) handle(w http.ResponseWriter, r *http.Request) {
|
||||
case 1: // UP
|
||||
tid, exists := b.open[k.Monitor.Name]
|
||||
if !exists {
|
||||
return
|
||||
// restarts wipe the in-memory map; search GLPI for an open ticket
|
||||
tid, _ = b.glpi.openTicketFor(k.Monitor.Name)
|
||||
if tid == 0 {
|
||||
return
|
||||
}
|
||||
}
|
||||
delete(b.open, k.Monitor.Name)
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user