{{/* The polled part of Health, in the page and in its fragment (GET /server/health/fragment) alike. The left stack is the element that polls (data-poll, outerHTML): all four of its boxes are readings. The right stack ends in the static Configuration box, so its three readings are swapped into place one by one, each box by its own id, when the fragment marks them out of band (Health.AsFragment) - a fragment can replace only the element that asked for it. */}} {{define "health_body"}}{{template "health_stack" .}} {{template "health_sockets" .}} {{template "health_certificate" .}} {{template "health_mail" .}}{{end}} {{/* health_stack is the left stack: Processes, Sender check, Hostname and reverse DNS, Machine. */}} {{define "health_stack"}}
Could not ask supervisord for the process list.
{{template "body_close"}} {{else}}| Program | State | Detail |
|---|---|---|
| {{.Name}} | {{template "tag" .State}} | {{.Detail}} |
| Period | Panel not answering | Messages deferred |
|---|---|---|
| {{.Period}} | {{.Down}} | {{.Deferred}} |
{{template "inline" .SenderNote}}
{{template "body_close"}} {{template "box_close"}} {{template "box_open" .Hostname}} {{template "body_open"}} {{template "facts" .HostFacts}} {{template "body_close"}} {{template "box_close"}} {{template "box_open" .Machine}}| Resource | Usage | Detail |
|---|---|---|
| {{.Resource}} | {{if .Gauge}}{{.Gauge.Text}}{{else if .Usage}}{{.Usage}}{{else}}—{{end}} | {{range .Detail}} {{.}} {{end}} |
| Milter | State |
|---|---|
| {{.Name}}{{if .Note}} · {{.Note}}{{end}} {{.Path}}{{if .Detail}} {{.Detail}}{{end}} | {{template "tag" .State}} |
{{.CertDetail}}
{{template "body_close"}} {{template "box_close"}}{{end}} {{/* health_mail is the Notification mail card. */}} {{define "health_mail"}}{{template "box_open" .NotifyMail}}| Record | State |
|---|---|
| {{.Name}} {{.Host}} | {{template "tag" .State}} |
{{template "inline" .NotifyNote}}
{{template "body_close"}} {{template "box_close"}}{{end}}