Why NUT
The UPS is attached to the main host; everything else needs to know when the power drops so VMs and nodes shut down in order.
Setup
- Install
nuton the host with the USB driver. - Run
nut-webapiso remote clients can poll battery status. - Point node shutdown scripts at the NUT server status.
Gotchas
- The USB driver claims the device exclusively — only one server can talk to it.
- Test with
upsc ups@localhostbefore wiring anything into shutdown hooks.