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
|
// filter ha status changed messages for unreachable ones
|
||||||
for _, h := range haStatusChanges {
|
for _, h := range haStatusChanges {
|
||||||
unreachableMessage := strings.Contains(strings.ToLower(h.FullFormattedMessage), "changed to unreachable")
|
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
|
// make sure this host was in the host failures list
|
||||||
hostFound := false
|
hostFound := false
|
||||||
|
Reference in New Issue
Block a user