Install apcupsd by entering the following commands in the terminal:
sudo apt update sudo apt install apcupsd
Description:
APC UPS Power Management (daemon)
apcupsd provides UPS power management for APC products, including most BackUPS series models (including USB), SmartUPS V/S, SmartUPS (NET/RM), and Matrix series. . It controls and monitors the status of UPS and allows your computer to run for a specified length of time on UPS power, and then executes a controlled shutdown in the case of an extended power failure.
Homepage: http://www.apcupsd.org/
Version: 3.14.14-2
Section: universe/admin