Monitor Power Usage With Your UPS

November 18, 2009 Category: Uncategorized

If a system is connected to a UPS (Uninterruptible Power Supply), it is possible to determine how much power it consumes. For this purpose, I wrote a small script:

 Host:~# ./ups.sh

 UPS model: Back-UPS RS 1200 LCD
 APC model: Back-UPS RS 1200 LC
 Capacity: 720 Watt
 Load: 18 Percent
 Usage: 129 Watt
 Time left: 33 Minutes
 Status: ONLINE

 Host:~# ./ups.sh

 UPS model: Back-UPS RS 1200 LCD
 APC model: Back-UPS RS 1200 LC
 Capacity: 720 Watt
 Load: 19 Percent
 Usage: 136 Watt
 Time left: 22 Minutes
 Status: ONBATT

This script assumes that:

  1. You are running a unix

  2. You run apcupsd

The script can be downloaded here:

Comments