{{define "body"}}

Server status

Sampled every 5s from /proc and statfs. CLI tools (lsblk, smartctl, sensors) are not bundled with the worker; install them on the host separately if you want richer hardware data. SMART self-tests are out of scope.

CPU

Total busy
{{fmtPercent .Snapshot.CPU.TotalPct}}
User
{{fmtPercent .Snapshot.CPU.UserPct}}
System
{{fmtPercent .Snapshot.CPU.SystemPct}}
Idle
{{fmtPercent .Snapshot.CPU.IdlePct}}
I/O wait
{{fmtPercent .Snapshot.CPU.IOWaitPct}}

Load

1 min
{{printf "%.2f" .Snapshot.Load.One}}
5 min
{{printf "%.2f" .Snapshot.Load.Five}}
15 min
{{printf "%.2f" .Snapshot.Load.Fifteen}}

Memory

Total{{fmtBytes .Snapshot.Memory.Total}}
Available{{fmtBytes .Snapshot.Memory.Available}} ({{fmtPercent .Snapshot.Memory.AvailablePct}})
Free{{fmtBytes .Snapshot.Memory.Free}}
Buffers{{fmtBytes .Snapshot.Memory.Buffers}}
Cached{{fmtBytes .Snapshot.Memory.Cached}}
Swap total{{fmtBytes .Snapshot.Memory.SwapTotal}}
Swap free{{fmtBytes .Snapshot.Memory.SwapFree}}

Uptime

Uptime
{{fmtDuration .Snapshot.Uptime}}
Boot at
{{fmtTime .Snapshot.BootAt}}
Last sample
{{fmtTime .SnapshotAt}}

Network

{{range .Snapshot.Networks}} {{else}} {{end}}
IfaceRX bytesTX bytesRX pktsTX pktsRX errsTX errsRX dropsTX drops
{{.Name}} {{fmtBytes .RxBytes}} {{fmtBytes .TxBytes}} {{.RxPkt}} {{.TxPkt}} {{.RxErr}} {{.TxErr}} {{.RxDrop}} {{.TxDrop}}
No network interfaces detected.

Mount points

{{range .Snapshot.Disks}} {{else}} {{end}}
MountDeviceFSTotalFreeUsedUse%
{{.Mount}} {{.Device}} {{.FSType}} {{fmtBytes .Total}} {{fmtBytes .Free}} {{fmtBytes .Used}} {{fmtPercent .UsedPct}}
No mount points parsed from /proc/mounts.
{{end}}