summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go16
1 files changed, 15 insertions, 1 deletions
diff --git a/watchdog.go b/watchdog.go
index 6c90492..0609bb3 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -39,7 +39,21 @@ func NewWatchdog() {
fmt.Println("Done!")
return
case t := <-me.dog.C:
- log.Info("zookeeper Watchdog() ticked", me.hostname, "Current time: ", t)
+ // log.Info("zookeeper Watchdog() ticked", me.hostname, "Current time: ", t)
+ var counter int
+ loop := me.machines.SortByName()
+ for loop.Scan() {
+ m := loop.Machine()
+ counter += 1
+ zood := m.FindPackageByName("zood")
+ if zood == nil {
+ log.Info("machine", m.Hostname, "does not have zood installed")
+ } else {
+ // log.Info("know about machine", m.Hostname, "zood version", zood.Version)
+ }
+ }
+ log.Info("zookeeper has", counter, "machines. Current time:", t)
+
// h.pollHypervisor()
// h.Scan()
}