OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: defaultuserfoo on May 30, 2022, 11:15:46 pm

Title: how to use nut?
Post by: defaultuserfoo on May 30, 2022, 11:15:46 pm
Hi,

I'd like to use the nut plugin to monitor a UPS.  The UPS is connceted to a server (through an USB cable) which uses apcupsd to monitor it.

I have picked the apcupsd-driver and entered the port and it doesn't work, i. e. nothing shows unter Diagnostic, and when I'm logged in on the console through ssh, I'm getting messages saying the UPS is unavailable.

How could I get the monitoring to work?


(There is reasons why I switched back to apcupsd after trying out nut on Linux a long time ago ...)
Title: Re: how to use nut?
Post by: mimugmail on May 31, 2022, 06:18:56 am
Can you try usbhid driver?
Title: Re: how to use nut?
Post by: defaultuserfoo on May 31, 2022, 09:44:09 am
Yes, and I was trying to avoid that because the server connected to the UPS now still needs to know when to shutdown when the power goes out ...

Can't I just somehow install apcupsd on OPNsense?  I won't matter if I can't configure it through the GUI but can edit the configuration files myself.
Title: Re: how to use nut?
Post by: mimugmail on May 31, 2022, 09:45:16 am
You can install the plain pkg and configure yourself .. there's also a PR open for adding a plugin, but needs a bit of time

https://github.com/opnsense/plugins/pull/2799
Title: Re: how to use nut?
Post by: defaultuserfoo on May 31, 2022, 10:08:46 am
Thank you --- I tried usbhid and it doesn't work, either.  It just says communications lost after a short while and later that the UPS is unavailable.

I'll look into the apcupsd plugin now ...