summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/poll.go b/poll.go
index 1497509..bc3ea49 100644
--- a/poll.go
+++ b/poll.go
@@ -87,6 +87,7 @@ func clusterHealthy() (bool, string) {
var failed int
var missing int
var unknown int
+ var unknownList []string
for _, d := range me.droplets {
total += 1
@@ -97,6 +98,7 @@ func clusterHealthy() (bool, string) {
if d.CurrentState == "" {
// log.Info("SKIP. hostname has not been polled yet", d.Hostname, d.hname)
unknown += 1
+ unknownList = append(unknownList, d.Hostname)
continue
}
if d.CurrentState != "ON" {
@@ -129,7 +131,7 @@ func clusterHealthy() (bool, string) {
summary += fmt.Sprintf("missing = %d ", missing)
}
if unknown > 0 {
- summary += fmt.Sprintf("unknown = %d ", unknown)
+ summary += fmt.Sprintf("unknown = %d ", unknown, unknownList)
}
if failed > 0 {
summary += fmt.Sprintf("failed = %d ", failed)