• The read-write community string, usually it is “private” for read-write
access.
Building and Installing apcupsd
Follow the instructions in Building and Installing apcupsdl, being sure to
include the following options (in addition to any others you need) on the
./configure line:
./configure \
--with-serial-dev=<your-SNMP-device> \
--with-upstype=snmp \
--with-upscable=smart \
--enable-pthreads \
--enable-snmp
SNMP Specific Information
The SNMP connection gives less information compared to a serial smart
cable. This is not a problem as the most useful information is given, together
with a number of secondary parameters that are informative enough to run
safely your UPS.
Known Problems
Currently (as of 3.10.0) the code to power off the UPS needs special configu-
ration. The killpower command for SNMP UPSes can not be issued during
shutdown as typically at some time during shutdown operations the net-
work stack is stopped. To overcome this problem it is needed to modify the
/etc/rc.d/apcupsd system control script to tell apcupsd to issue the power
down command (killpower) to the UPS immediately before apcupsd initi-
ates the system shutdown. For this reason it is paramount to set your UPS
grace time to a value greater than 120 seconds to allow for clean shutdown
operations before the UPS removes the power from its plugs. To enable
correct shutdown operation during powerdown do the following:
• Connect to your Web/SNMP card using your favorite web browser,
go to the UPS configuration menu and change the “Shutdown Delay”
114