NUT server setup

One UPS, one NUT server, every machine shuts down cleanly.

NUT — Network UPS Tools — is the software underneath Synology, TrueNAS, Unraid and Proxmox UPS support. Set it up once on the machine that owns the USB cable, and every other machine becomes a client of it.

A UPS protects one machine by itself. A NUT server protects the whole homelab: the NAS, the hypervisor, the mini PC and the router all learn about the outage from the same source, and each shuts down in the right order.

The three pieces of NUT

The driver talks to the UPS hardware and reads battery charge, runtime, load and status. The server (upsd) publishes those readings on the network, on TCP port 3493. The client (upsmon) watches the readings and starts the shutdown when the UPS reports low battery. The command upsc reads the current values, which is how you check that data is flowing before you trust it.

Driver table — the one thing people get wrong

UPSDriverNotes
Most modern APC and Eaton unitsusbhid-upsThe default. Port auto.
CyberPower CP1500PFCLCD, CP850PFCLCDusbhid-upsStandard HID. Add pollinterval = 15 if the USB wedges.
Some older CyberPower CP-series, Megatec-style unitsblazer_usbTry this if usbhid-ups finds nothing.
Generic / no-name UPS unitsnutdrv_qxOften needs vendorid, productid and langid_fix. See the Unraid notes.
Some CyberPower VP models on DSMpowerpanelDSM-specific fix — see the CyberPower fix page.
UGREEN US3000usbhid-ups, subdriver ArduinoNeeds NUT 2.8.3 or newer. TrueNAS 25.10 ships 2.8.0 — see the US3000 fix page.
UPS with a network management cardsnmp-upsFor Smart-UPS and similar units with an SNMP card.

Copy-paste config — server (Proxmox / Debian)

Install NUT on the host: apt update && apt install nut nut-server nut-client. Identify the UPS first with nut-scanner -U, then edit the files in /etc/nut/. Use your own passwords — these are placeholders.

# /etc/nut/nut.conf
MODE=netserver

# /etc/nut/ups.conf
[ups]
    driver = usbhid-ups
    port = auto
    desc = "Homelab UPS"

# /etc/nut/upsd.conf
LISTEN 127.0.0.1 3493
LISTEN 192.168.1.10 3493

# /etc/nut/upsd.users
[upsmon_local]
    password = change-me-local
    upsmon primary
[upsmon_remote]
    password = change-me-remote
    upsmon secondary

# /etc/nut/upsmon.conf
MONITOR ups@localhost 1 upsmon_local change-me-local primary
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POWERDOWNFLAG /etc/killpower

Restart and verify: systemctl restart nut-server nut-monitor, then upsc ups@localhost ups.status — expect OL (on line). Pull the UPS input plug from the wall and watch it change to OB (on battery).

Copy-paste config — a client

# /etc/nut/nut.conf
MODE=netclient

# /etc/nut/upsmon.conf
MONITOR ups@192.168.1.10 1 upsmon_remote change-me-remote secondary
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"

On a Synology acting as a client of a non-Synology NUT server, the server name is ups and the DSM-side credentials are its own: use the server's address and the user you created there. On NUT 2.8 and later the role is called secondary; on older versions it was slave.

US3000 special config (NUT 2.8.3+ only)

[us3000]
    driver = usbhid-ups
    port = auto
    vendorid = 2b89
    productid = ffff
    subdriver = Arduino
    pollonly

USB VID:PID 2b89:ffff. This does not work on TrueNAS 25.10.4 — see the fix page.

Test the shutdown — properly

Do not wait for a real outage. Pull the UPS input plug from the wall (not the output cord — that kills the NAS instantly), watch the status change to OB, and confirm each machine shuts down before the battery dies. Time it: a NAS with a few services needs two to four minutes, more with VMs and containers. If the shutdown takes longer than the runtime, the UPS is too small or the trigger is too late.

Prefer a generated config? The NUT config generator builds all four files for your UPS, OS and shutdown mode.

Questions people ask

Where should the NUT server run?

On the machine that owns the USB cable — usually the Proxmox host or the NAS. Never inside a VM: when the host shuts down, the VM dies with it.

What is the difference between primary and secondary?

The primary owns the UPS and can tell it to power off after everything is down. Secondaries only shut themselves down. In older NUT versions these were called master and slave.

How do I shut down in a specific order?

Shutdown order is the hard part. See Proxmox UPS shutdown for the upssched timing trick: hypervisors finish first, storage last.

Reviewed by Dharmen Bhambu · Last reviewed 29 November 2026. No lab tests have been completed yet — every verdict on this site shows its source. See how we check and the test log.