starone
(Scott Tarone)
30 January 2024 01:01
1
I hope its ok that I posted this in networking… kind of could be a hardware thing.
(note, I tried using NUT but I couldn’t figure out how to get it to work)
I’m trying to use apcupsd which I installed using PakFire. The service runs but I don’t think it ever establishes connection.
The log file is filled with:
“Communications with UPS lost”
I did find a command lsusb (I think) that listed everything connected to a USB port and I did see my APC SmartUPS. So, can anyone tell me what could be wrong"?
Thank you!
porkyle
(Porkyle)
30 January 2024 07:23
2
You need to modify /etc/apcupsd/apcupsd.conf
file to get connection working between UPS and Apcupsd.
2 Likes
trish
(trish)
1 February 2024 19:02
3
Hi Scott @starone ,
What is your UPS make and model? is it USB or ethernet?
can you post some screenshot of your APCUPSD addon ?
and copy paste your /etc/apcupsd/apcupsd.conf
file
@jon 's post helped me a little while ago:
I just added the USB cable from my IPFire device to my existing Cyber Power CP1500PFCLCD. And here are the changes I made to apcupsd.conf:
[root@ipfire ~] # cat /etc/apcupsd/apcupsd.conf
...
UPSNAME Cyberpwr # <- only 8 character allowed
UPSCABLE usb
UPSTYPE usb
# leave DEVICE blank
DEVICE
...
These are the only changes I made to the default apcupsd.conf file. And it seems to work OK for me. I have not tested this yet (no test button and no test power down).
EDIT: Here is the screen I see…
starone
(Scott Tarone)
6 February 2024 21:29
4
Sorry for the late reply…
I have a APC Back-UPS Pro 1500 S
What is the addon? Is that the webpage that gets added to the ipfire portal?
Here are the contents that are uncommented
UPSCABLE smart
UPSTYPE apcsmart
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
ANNOY 300
ANNOYDEL:AY 60
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
There are also a few lines about stats…but that is all that is uncommented.
hvacguy
(Shaun HVAC)
6 February 2024 22:52
5
Should be
UPSCABLE usb
UPSTYPE usb
UPSNAME apcsmart
I have NIS enabled
So my server can use the APC .
1 Like
starone
(Scott Tarone)
7 February 2024 00:46
6
Porkyle:
apcupsd.conf
So comment out the “DEVICE” tag? Or leave it uncommented without anything?
starone
(Scott Tarone)
7 February 2024 00:52
7
Silly me…I thought “smart” meant “autodetect”:. I switched to usb as suggested and it connected.
Thanks all!
1 Like
DEVICE should be left uncommented and blank. This then means it will autodetect the device info it needs.
1 Like