version OPNsense 26.1.8_5-amd64
This was working, then upgrade stopped showing NUT diagnostics, at least. don't know if NUT was running. Upgraded received NUT update. Same things. From terminal:
usbconfig list | grep -i "power\|apc"
ugen0.2: <Uninterruptible Power Supply American Power Conversion> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA)
root@OPNsense:~ # cat /usr/local/etc/nut/nut.conf
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
MODE=standalone
root@OPNsense:~ # cat /usr/local/etc/nut/ups.conf
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
[APC]
driver=usbhid-ups
root@OPNsense:~ # cat /usr/local/etc/nut/upsd.conf
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
LISTEN 127.0.0.1 3493
LISTEN ::1 3493
root@OPNsense:~ # cat /usr/local/etc/nut/upsmon.conf
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
MONITOR APC 1 monuser Password master
SHUTDOWNCMD "/usr/local/etc/rc.halt"
POWERDOWNFLAG /etc/killpower
root@OPNsense:~ # service nut status
nut is not running.
root@OPNsense:~ # service nut_upsmon status
nut_upsmon is running as pid 97492.
root@OPNsense:~ # service nut start 2>&1
root@OPNsense:~ #
root@OPNsense:~ # grep -i nut /var/log/messages | tail -20
grep: /var/log/messages: No such file or directory
Broadcast Message from root@OPNsense.1615
(no tty) at 11:12 CDT...
UPS APC is unavailable
Hello, please use the forum search. There have been quite some threads about this issue already. Thank you :)
Search of forum did not reveal answer. Clause AI did. I now have diagnostics in my USB connected AP Backup Pro 1000.. If hit save in NUT service gui, it hoses the changes.
Claude suggested:
echo 'port = auto' >> /usr/local/etc/nut/ups.conf
upsdrvctl start
upsd
upsc APC@127.0.0.1
And whatever you do, don't touch the NUT settings in the GUI again until this bug gets fixed upstream. That syshook script I mentioned earlier would be worth setting up so you don't have to do this manually every time.