diff options
| author | Jeff Carr <[email protected]> | 2024-10-12 11:21:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-12 11:21:45 -0500 |
| commit | a6b385e21628989b9c14958fdaaca00fbf1f4663 (patch) | |
| tree | 8b5d48f0d2257be110095eae7f4fd0824ef8d18f /main.go | |
| parent | d08d9f99bee4d4e93a8beda780d8e9f6099e32cb (diff) | |
watchdog for each hypervisor
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -32,22 +32,21 @@ func main() { var h HyperT h.Hostname = s h.Autoscan = true - h.Delay = 3 * time.Second + h.Delay = 5 * time.Second h.Scan = func() { log.Info("scanned farm03?") h.pollHypervisor() } me.hypers = append(me.hypers, h) } - go startHTTP() log.Info("me.names =", me.names) for _, h := range me.hypers { log.Info("me hostname =", h.Hostname) - if h.Hostname == "farm03" { - log.Info("should start watchdog here for hostname =", h.Hostname) - h.NewWatchdog() - } + log.Info("should start watchdog here for hostname =", h.Hostname) + go h.NewWatchdog() } + // sit here + startHTTP() } |
