-
-
Notifications
You must be signed in to change notification settings - Fork 423
Description
I'm looking for a bit of help here... similar to the previous issue, I've got an APC UPS working correctly under USBHID-UPS driver but it's not showing some of the key info that I'd like. I was hoping to keep the NUT install as is but add the APC_MODBUS driver. I've been following the below info:
https://github.com/networkupstools/nut/wiki/APC-UPS-with-Modbus-protocol
https://www.kreaweb.be/diy-home-server-2021-software-proxmox-ups/
#2348
I'm running on Proxmox host (v8.3.5). I've gotten the patched LIBMODBUS (prefix = /usr/local) and NUT (config from wiki) working. The APC_MODBUS driver is compiling but I can't just copy to the "/lib/nut" directory as I need the NUT config to be following the system install paths. I understand the goals but I'm not sure about all of the correct NUT config options. Below is what I've got so far...
./configure --with-drivers=apc_modbus --with-usb --with-modbus \
--with-modbus-includes=-I/usr/local/include/modbus \
--with-modbus-libs="-L/usr/local/lib -lmodbus" \
--with-user=root --with-group=nut \
--datadir=/usr/share/nut \
--sysconfdir=/etc/nut \
--with-statepath=/var/run/nut \
--with-pidpath=/var/run/nut \
--with-altpidpath=/var/run/nut \
--with-drvpath=/lib/nut \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-pkgconfig-dir=/usr/lib/pkgconfig \
--with-udev-dir=/usr/lib/udev \
--libdir=/usr/lib/
The goal is to build against the patched LIBMODBUS and, at the end, copy the APC_MODBUS driver file direct from the build directory into /lib/nut and have it live alongside the USBHID-UPS driver installed by the basic NUT install.