diff --git a/bridge b/bridge index 71b2bba..14c8bbc 100755 Binary files a/bridge and b/bridge differ diff --git a/cmd/bridge/main.go b/cmd/bridge/main.go index 2906077..7bcc68f 100644 --- a/cmd/bridge/main.go +++ b/cmd/bridge/main.go @@ -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() {