Small containerized nut (https://github.com/networkupstools/nut) UPS monitoring deamon I needed to quickly redeploy between my servers. Its default settings make it compatible with Synology DSM (it requires specific port, username and password).
Alternative to:
- nut-upsd from https://github.com/instantlinux/docker-tools - also minimalistic, but not exposing ups.conf directly
- Peanut from https://github.com/Brandawg93/PeaNUT - feature-rich, operated via gui
You can directly deploy docker-compose.yml from this repo.
You will ideally only need to set NUT_UPS_CONF to point to your ups.conf.
Available parameters:
| Variable | Description | Default |
|---|---|---|
| NUT_UPS_CONF | Path to ups.conf file | see [1] |
| NUT_PORT | upsd port | 3493 |
| NUT_USER | upsd username | monuser |
| NUT_PASSWORD | upsd password | secret |
| NUT_USB_PATH | USB bus path, for exotic configurations. Likely you will not need to change this. | /dev/bus/usb |
[1] default ups.conf:
[ups]
driver = usbhid-ups
port = auto
For specific configuration of your UPS, refer to user manual: https://networkupstools.org/docs/man/