Skip to content

Network UPS tools (nut)

Install

Install the nut metapackage:

apt install nut

Configure

Run nut-scanner to auto-fetch a valid config snippet for /etc/nut/ups.conf:

nut-scanner

Configure these files according to the Debian wiki tutorial:

  • /etc/nut/nut.conf
  • /etc/nut/ups.conf
  • /etc/nut/upsd.users
  • /etc/nut/upsmon.conf

Restart services:

systemctl restart nut-server.service
systemctl restart nut-monitor.service

Check the UPS:

upscmd -l eaton
upsc eaton
upsc eaton | grep -E '(ups.realpower|ups.load|ups.status|battery.charge|battery.runtime)'

Ansible

Prometheus