irishlab.io

This is my homelab, there are many like this but this one is mine.

Nut

Nut UPS

Network UPS Tools project is to provide support for Power Devices, such as Uninterruptible Power Supplies, Power Distribution Units, Automatic Transfer Switches, Power Supply Units and Solar Controllers. NUT provides a common protocol and set of tools to monitor and manage such devices, and to consistently name equivalent features and data points, across a vast range of vendor-specific protocols and connection media types.

Hardware consideration

Connect your UPS via USB before starting this.

Manual Installation

lsusb
sudo apt update
sudo apt install nut nut-client nut-server
sudo nut-scanner -U
sudo nano /etc/nut/ups.conf
sudo nano /etc/nut/upsmon.conf
sudo nano /etc/nut/upsd.conf
sudo nano /etc/nut/nut.conf
sudo nano /etc/nut/upsd.users
sudo nano /etc/udev/rules.d/99-nut-ups.rules

Automated Installation

Ansible roles

ansible-playbook nut.yml -K

Testing it

Last updated on 26 Oct 2019
Published on 23 Nov 2018
 Edit on GitHub