This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:linux:ups:cyberpower [2014/06/15 12:58] gcooper |
computing:linux:ups:cyberpower [2023/05/10 14:02] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configure CyberPower UPS Monitoring on Linux ====== | ====== Configure CyberPower UPS Monitoring on Linux ====== | ||
- | ===== CyberPower PowerPanel for Linux ===== | + | http:// |
- | :!: PowerPanel | + | ===== PowerPanel |
- | See also: **[[networking:linux: | + | **Download**: https:// |
- | See also: **[[networking:linux:ssmtp|SSMTP]]** | + | **Manual**: https:// |
==== Installation ==== | ==== Installation ==== | ||
- | Connect the included USB cable to UPS. You may have problems getting it to work with the serial cable. | + | :!: Tested |
- | === RPM === | + | :!: Connect the included USB or serial cable to UPS. |
- | :!: Tested | + | :!: We use the **Local** version for single servers |
< | < | ||
- | rpm -Uvh http://www.cyberpowersystems.com/software/powerpanel_123_i386.rpm | + | wget https://dl4jz3rbrsfum.cloudfront.net/software/ppb490-linux-x86_x64.sh |
+ | chmod +x ppb470-linux-x86_x64.sh | ||
+ | ./ | ||
</ | </ | ||
- | === Tar === | + | Check that services started: |
- | + | ||
- | :!: Tested with SME Server 7.3 and a CyberPower CP1500AVRT UPS. | + | |
- | + | ||
- | Download the PowerPanel software to the machine where the UPS is connected: | + | |
- | + | ||
- | wget http:// | + | |
- | + | ||
- | Unpack and install: | + | |
- | + | ||
- | tar -xzvf powerpanel-1.1.tar.gz cd powerpanel-1.1 ./ | + | |
- | + | ||
- | ==== Check Communications ==== | + | |
< | < | ||
- | pwrstat -status | + | systemctl |
- | pwrstat -config | + | systemctl status ppbwd.service |
</ | </ | ||
- | Verify startup: | + | ==== Access ==== |
- | < | + | Default credentials: |
- | chkconfig --list |grep pwr | + | |
- | </ | + | |
- | For SME Server only which uses runlevel 7: | + | ^Username ^Password |
+ | |admin | ||
- | < | + | Use a web browser from a workstation: |
- | ln -s /etc/rc.d/init.d/pwrstatd /etc/rc7.d/ | + | |
- | </ | + | **http://ip.of.linux.svr:3052** |
==== Configuration ==== | ==== Configuration ==== | ||
Line 107: | Line 96: | ||
===== XenServer ===== | ===== XenServer ===== | ||
+ | |||
+ | :!: These settings are probably not ideal, but are a good start. | ||
Modifications to above for XenServer: | Modifications to above for XenServer: | ||
Line 120: | Line 111: | ||
shutdown-sustain = 600 #set this to a little longer than it takes to shut down all VMs and your server | shutdown-sustain = 600 #set this to a little longer than it takes to shut down all VMs and your server | ||
lowbatt-threshold = 35 # | lowbatt-threshold = 35 # | ||
+ | lowbatt-duration = 60 #allow the script to run for 60 seconds before the shutdown | ||
</ | </ | ||