OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: axsdenied on April 05, 2024, 04:06:37 AM

Title: Am I the Nut? Or is it Nut? [Solved]
Post by: axsdenied on April 05, 2024, 04:06:37 AM
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.
Title: Re: Am I the Nut? Or is it Nut?
Post by: julsssark on April 05, 2024, 05:16:19 PM
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/ (https://schnerring.net/blog/configure-nut-for-opnsense-and-truenas-with-the-cyberpower-pr750ert2u-ups/)
Title: Re: Am I the Nut? Or is it Nut?
Post by: axsdenied on April 05, 2024, 07:49:46 PM
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.
Title: Re: Am I the Nut? Or is it Nut? [Solved]
Post by: axsdenied on April 05, 2024, 08:39:27 PM
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.
Title: Re: Am I the Nut? Or is it Nut? [Solved]
Post by: daniel5897 on November 06, 2024, 09:40:42 PM
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...