Am I the Nut? Or is it Nut? [Solved]

Started by axsdenied, April 05, 2024, 04:06:37 AM

Previous topic - Next topic
April 05, 2024, 04:06:37 AM Last Edit: April 05, 2024, 08:38:16 PM by axsdenied
Problem: Trying to setup my OPNsense box as a nut master but no matter what configuration options I try I can't get it to function properly.

Physical Setup: OPNsense box is connected to my APC Back-UPS XS 1500M

Steps I've tried:  I can get the Apcupsd plugin, via USB cable type and UPS Type: USB, to talk with my UPS.  Status shows all the appropriate information.  Documentation says this service alone can be setup as a server but it is VERY unclear on how to accomplish that.

I then install the Nut plugin.  I've tried disabling Apcupsd and setting nut to communicate via USBHID and I've tried to use the Apcusd driver with the Apcusd plugin enabled; in either scenario, I can't see anything in the Nut diagnostics about the battery unit at all.

Question: What am I missing?  The web and YouTube are surprisingly lacking in content on this scenario.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

I run NUT as a client, but I did come across this helpful site for NUT server setup that might give you an idea where to look:

https://schnerring.net/blog/configure-nut-for-opnsense-and-truenas-with-the-cyberpower-pr750ert2u-ups/

Thanks for taking a look out there.  I cam across that same article but it falls apart after configuring USBHID-Driver.  UPS data doesn't show in diagnostics after the fact.  No errors that I can see.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

Turns out I'm the Nut!

When I was re-checking firewall rules, I had read too quickly.  I thought I already had a rule in place that would allow it to communicate but then noticed it was only for ICMP LOL.

Added the rules for the APCUSD service and Nut service and voila, it's working.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

November 06, 2024, 09:40:42 PM #4 Last Edit: November 06, 2024, 09:49:18 PM by daniel5897
I'm in a similar situation where I can get the APCUPSD plugin to read my UPS via USB cable but I cannot get NUT to recognize it. My UPS is an APC BE600M1 which I don't see on the list for NUT but I've gotten it to be configured so assume it should work with a little bit of effort.

Anyways, just wondering what you needed to do to fix your issue, specifically what "Added the rules for the APCUSD service" was?

Do you/did you have to have both plugins installed? I thought only NUT.

Edit: never mind, I finally got it to work with the USBHID driver...