summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-12 11:54:01 -0500
committerJeff Carr <[email protected]>2024-10-12 11:54:01 -0500
commit487c6fd11c2746a71fee1a6b562e41fbb2486382 (patch)
tree9b586687707d3778856ef285fdd88d583c3b8eb7 /main.go
parenta6b385e21628989b9c14958fdaaca00fbf1f4663 (diff)
polling duration times work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/main.go b/main.go
index cf6456d..d04d9eb 100644
--- a/main.go
+++ b/main.go
@@ -24,26 +24,24 @@ func main() {
os.Exit(0)
}
- log.Info("connect to cluser here", argv.Hosts)
+ log.Info("create cluser for", argv.Hosts)
for _, s := range argv.Hosts {
me.names = append(me.names, s)
- log.Info("Make a hypervisor struct for", s)
+ log.Info("Making a hypervisor struct for", s)
var h HyperT
h.Hostname = s
h.Autoscan = true
h.Delay = 5 * time.Second
h.Scan = func() {
- log.Info("scanned farm03?")
h.pollHypervisor()
}
me.hypers = append(me.hypers, h)
}
- log.Info("me.names =", me.names)
+ // start the watchdog polling for each hypervisor
for _, h := range me.hypers {
- log.Info("me hostname =", h.Hostname)
- log.Info("should start watchdog here for hostname =", h.Hostname)
+ log.Info("starting watchdog here for hostname =", h.Hostname)
go h.NewWatchdog()
}