Docker image combining Network UPS Tools server and webNUT in 1 docker
This image provides a complete UPS monitoring service (USB driver only).
Start the container:
# docker run \
--name nut-upsd \
-p 3493:3493 \
-p 6543:6543 \
-e SHUTDOWN_CMD="echo 'System shutdown not configured!'" \
-v 'nut-volume':'/etc/nut/' \
-v 'webnut-volume':'/app/webNUT/webnut/' \
--device /dev/bus/usb/xxx/yyy \
upshift/nut-upsd
Auto configuration via environment variables This image supports customization via environment variables.
Default value: ups
The name of the UPS.
Default value: UPS
This allows you to set a brief description that upsd will provide to clients that ask for a list of connected equipment.
Default value: blazer_usb
This specifies which program will be monitoring this UPS.
Default vaue: auto
This is the serial port where the UPS is connected.
Default vaue: monuser
This is the username used for communication between upsmon and upsd processes.
Default vaue: auto-generated
This is the password for the upsmon user.
Default vaue: auto-generated
This is the admin password.
Default vaue: echo 'System shutdown not configured!'
webNUT: https://github.com/rshipp/webNUT
Network UPS Tools: https://networkupstools.org/
nut-upsd docker sample: https://github.com/upshift-docker/nut-upsd/
webNUT docker sample: https://github.com/jakezp/arm32v7-webnut/
This is the command upsmon will run when the system needs to be brought down. The command will be run from inside the container.