User's Manual UPS control system
Table Of Contents
- Apcupsd User's Manual
- Release Notes
- How To Use This Manual
- Basic User's Guide
- Planning Your Installation
- Building and Installing apcupsd
- After Installation
- Configuration Examples
- Testing Apcupsd
- Troubleshooting Your Installation
- Monitoring and Tuning your UPS
- Maintaining Your UPS
- Frequently-Asked Questions
- Apcupsd Bugs
- Advanced topics
- Customizing Event Handling
- Master/Slave Configurations
- Controlling Multiple UPSes on one Machine
- Support for SNMP UPSes
- Alternate Ways To Run The Network Information Server
- apcupsd System Logging
- Installation: Windows
- Windows Version of apcupsd
- Installation: Serial-Line UPSes
- Overview of Serial-Interface UPSes
- Connecting a Serial-Line UPS to a USB Port
- Connecting a APC USB UPS to either a PC USB or Serial Port
- Cables
- Smart-Custom Cable for SmartUPSes
- Smart Signalling Cable for BackUPS CS Models
- Voltage-Signalling Cable for "dumb" UPSes
- Other APC Cables that apcupsd Supports
- Voltage Signalling Features Supported by Apcupsd for Various Cables
- Voltage Signalling
- Back-UPS Office 500 signals
- Analyses of APC Cables
- Win32 Implementation Restrictions for Simple UPSes
- Internal Apcupsd Actions for Simple Cables
- RS232 Wiring and Signal Conventions
- Pin Assignment for the Serial Port (RS-232C), 25-pin and 9-pin, Female End
- Ioctl to RS232 Correspondence
- Testing Serial-Line UPSes
- Troubleshooting Serial Line communications
- Recalibrating the UPS Runtime
- DATA Logging
- Technical Reference
- Configuration Directive Reference
- apcupsd Status Logging
- Shutown Sequence and its Discontents
- APC smart protocol
- Apcupsd --- RPM Packaging FAQ
- Credits
- Kernel Config
Controlling Multiple UPSes on one Machine
You may want to use your server to control multiple UPSes. This is possible
by proper configuration and by running one copy of apcupsd for each UPS
to be controlled (recall the Configuration types.).
Configuration
The way to accomplish the above is to ensure that none of the critical files
used by each of the two copies of apcupsd are the same. By using suitable
configuration options, this is possible.
The First Copy of apcupsd:
For example, assuming you have SmartUPSes in both cases, to configure
and install the first copy of apcupsd, which controls a UPS and Computer
A, one could use the following configuration:
./configure \
--prefix=/usr \
--sbindir=/sbin \
--with-cgi-bin=/home/http/cgi-bin \
--enable-cgi \
--with-css-dir=/home/http/css \
--with-log-dir=/etc/apcupsd \
--with-serial-dev=/dev/ttyS0 \
--enable-pthreads \
--with-nis-port=3551 \
--enable-powerflute
This is pretty much a “normal” installation using many of the defaults. Once
built and installed, this would control the first UPS and cause a shutdown of
the system when the batteries are low. This copy of apcupsd will be started
and stopped automatically when the system is booted and halted.
The Second Copy of apcupsd:
To configure and install the second copy of apcupsd, which controls the
second UPS and Computer B, you could use the following configuration:
111










