consul: Provide output for serfHealth check. Fixes #176.

pull/205/head
Armon Dadgar 11 years ago
parent a88c36bdc1
commit 476339b20c

@ -13,6 +13,8 @@ import (
const (
SerfCheckID = "serfHealth"
SerfCheckName = "Serf Health Status"
SerfCheckAliveOutput = "Agent alive and reachable"
SerfCheckFailedOutput = "Agent not live or unreachable"
ConsulServiceID = "consul"
ConsulServiceName = "consul"
newLeaderEvent = "consul:new-leader"
@ -266,6 +268,7 @@ AFTER_CHECK:
CheckID: SerfCheckID,
Name: SerfCheckName,
Status: structs.HealthPassing,
Output: SerfCheckAliveOutput,
},
}
var out struct{}
@ -300,6 +303,7 @@ func (s *Server) handleFailedMember(member serf.Member) error {
CheckID: SerfCheckID,
Name: SerfCheckName,
Status: structs.HealthCritical,
Output: SerfCheckFailedOutput,
},
}
var out struct{}

Loading…
Cancel
Save