Setting up UPS monitoring

Install nut

sudo apt-get install nut

Then edit the configuration files, first /etc/nut/nut.conf based on your configuration:


Then edit /etc/nut/ups.conf based on your UPS device:

driver = usbhid-ups
port = auto 

Start the driver with:

sudo upsdrvctrl start 

I received an error that it can’t claim USB device. To fix this, I changed the group of the UPS device to but using the following command after identifying the USB bus and device numbers using lsusb command:

sudo chown root:nut /dev/bus/usb/xxx/yyy

Where xxx is the bus and yyy is the device found with the previous command.
Once that was done, I ran the following and it was working:

sudo upsdrvctrl start
sudo apsd

Then running apsc apc shows all the good details.

Leave a Reply

Your email address will not be published. Required fields are marked *