Package: apcupsd
Version: 3.14.4-1lenny1
Severity: normal
apctest does not appear to work properly when using the snmp driver. With
the exact same configuration, apcupsd works fine, but apctest fails with the
error "apctest: there is a problem here! We have no device open.".
I'm using an APC SmartSlot AP9605 SNMP adapter in a SU1400NET.
Here's good status info from the apcupsd events file showing it can talk to
the unit fine, and the config is the same, so the problem is with apcupsd:
Thu Jul 09 19:47:26 CDT 2009 Power failure.
Thu Jul 09 19:47:33 CDT 2009 Running on UPS batteries.
Thu Jul 09 19:47:37 CDT 2009 Mains returned. No longer on UPS batteries.
Thu Jul 09 19:47:37 CDT 2009 Power is back. UPS running on mains.
Here's the apcupsd.conf:
UPSNAME smartups
UPSCABLE ether
UPSTYPE snmp
DEVICE ups:161:APC:private
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 1
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 127.0.0.1
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 15
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
=== cut here ===
# apctest
2009-07-09 20:53:05 apctest 3.14.4 (18 May 2008) debian
Checking configuration ...
Attached to driver: snmp
sharenet.type = DISABLE
cable.type = APC_NET
You are using a SMART cable type, so I'm entering SMART test mode
mode.type = SNMP_UPS
Setting up the port ...
apctest: there is a problem here! We have no device open.
=== cut here ===
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org