Solved APC Smart-UPS 1500

Running FreeBSD 12.2

I've just setup a APC Smart-UPS 1500 UPS via a USB port and my server is correctly picking it up ...

ugen0.3: <American Power Conversion Smart-UPS 1500 FW:601.3.I USB FW:1.5> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (30mA)

I've installed apcupsd and edited the required file called apcupsd.conf with the following options ...

UPSNAME APC1500
UPSCABLE usb
UPSTYPE usb
DEVICE

However when trying to start apcupsd I get

PR
apcupsd FATAL ERROR in apcconfig.c at line 672
Terminating due to configuration file errors.
/usr/local/etc/rc.d/apcupsd: WARNING: failed to start apcupsd


Any suggestions?
 
change your device in apcupsd.conf to
DEVICE /dev/ugen0.3

leaving it blank should autodetect it but try with pointing to the right path.
 
Please show all your config changes
diff apcupsd.conf.sample apcupsd.conf

Try to create new config from original apcupsd.conf.sample
Edit only necessary options like UPSCABLE UPSTYPE

Check the log /var/log/apcupsd.events

I had USB APC on Linux with these config:
Code:
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyUSB0
FreeBSD 'DEVICE' name might be different from Linux one.
 
Ahem,

Solved. Embarrassingly I had left off UPSNAME and the line just showed APC1500 which I found out by running apcupsd --debug 300
 
Back
Top