CyberPower UPS
This document describes how to install the CyberPower UPS daemon PowerPanel or alternatively the Network-UPS-Tools. The main advantage of using a CyberPower UPS is that it is cheap and it can communicate with your Linux box through either a RS-232 or USB serial connection. In the event of a prolonged power outage, should the CyberPower UPS lose most of its battery capacity, it can tell the Linux box to perform a safe shutdown.
Contents
Using PowerPanel
Installation
Install the powerpanelAUR package.
Configuration
Edit /etc/pwrstatd.conf
Email notifications can be accomplished by editing /etc/powerpanel/pwrstatd-powerfail.sh and /etc/powerpanel/pwrstatd-lowbatt.sh
/etc/powerpanel/pwrstatd-email.sh
Running
Start/enable pwrstatd.service.
Then run # pwrstat -status. You should get something like this:
The UPS information shows as following:
Properties:
Model Name................... Value 1500E
Firmware Number.............. BFF7104#7N5
Rating Voltage............... 230 V
Rating Power................. 900 Watt
Current UPS status:
State........................ Normal
Power Supply by.............. Utility Power
Utility Voltage.............. 230 V
Output Voltage............... 230 V
Battery Capacity............. 100 %
Remaining Runtime............ 61 min.
Load......................... 126 Watt(14 %)
Line Interaction............. None
Test Result.................. Unknown
Last Power Event............. None
Using Network UPS Tools
If you do not wish to use PowerPanel, the Network UPS Tools (NUT) is an alternative. Only one of these programs (PowerPanel or NUT) is required to monitor and shut the system down. You shouldn't use both as they might interfere with one another.
Use instructions from the Wiki page of Network UPS Tools.