apt-get install apcupsd apcupsd-doc
vim /etc/apcupsd/apcupsd.conf
vim /etc/default/apcupsd ISCONFIGURED=yes
systemctl restart apcupsd.service