This commit is contained in:
3
main.go
3
main.go
@@ -278,7 +278,8 @@ func main() {
|
||||
// filter ha status changed messages for unreachable ones
|
||||
for _, h := range haStatusChanges {
|
||||
unreachableMessage := strings.Contains(strings.ToLower(h.FullFormattedMessage), "changed to unreachable")
|
||||
if unreachableMessage {
|
||||
hostFailedMessage := strings.Contains(strings.ToLower(h.FullFormattedMessage), "changed to host failed")
|
||||
if unreachableMessage || hostFailedMessage {
|
||||
|
||||
// make sure this host was in the host failures list
|
||||
hostFound := false
|
||||
|
Reference in New Issue
Block a user