Docker image for Network UPS Tools server. Docker image have been remade using ubuntu 20.04 as the base, it links systemd inside container and enables shutdown functionality. Also there are some reporting to InfluxDB added. See docker compose for configuration.
NOTE! New shutdown function have been introduced, look at shutdown-server
This image provides a complete UPS monitoring service (USB driver only).
Start the container:
docker-compose up
This image supports customization via environment variables.
Default value: ups
The name of the UPS.
Default value: Eaton 5SC
This allows you to set a brief description that upsd will provide to clients that ask for a list of connected equipment.
Default value: usbhid-ups
This specifies which program will be monitoring this UPS.
Default value: auto
This is the serial port where the UPS is connected.
Default value: upsmon
This is the username used for communication between upsmon and upsd processes.
Default value: secret
This is the password for the upsmon user.
Default value: echo 'System shutdown not configured!'
You should use: /usr/local/bin/shutdown-client -action shutdown -api_key abcd -hosts node1,node2,node3
This is the command upsmon will run when the system needs to be brought down. The command will be run from inside the container.
Default value: false
This will enable reporting to InfluxDB. Only v1 of http api is supported at the time of writing.
Default value: none
InfluxDB Database user
Default value: none
InfluxDB Database password
Default value: none
InfluxDB Host
Default value: none
InfluxDB Port
Default value: none
InfluxDB Database name
Default value: none
There you can specifiy your server hostname or any other keyword, it defines the tag for InfluxDB measurement table.
Default value: none
How frequently write statistics to the InfluxDB, I'm advice you to use 10 (seconds) or more here.