Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Getting NUT to work via USB cable connection
« previous
next »
Print
Pages: [
1
]
Author
Topic: Getting NUT to work via USB cable connection (Read 843 times)
OnTheGrind
Newbie
Posts: 11
Karma: 0
Getting NUT to work via USB cable connection
«
on:
November 22, 2022, 04:28:15 pm »
Hello,
I have an APC-BN1500M2 UPS connected to my OPNsense box via the UPS supplied usb cable. I've added NUT from the packages repo, and attempted to configure it as a 'standalone' with defaultt listen address (though shouldn't need that for USB?).
Under UPS TYPE extra arguments is port=auto. I've tried USBHID, BlazerUSB, APCSMART-DRIVER and no dice.
Under services nut_upsmon starts, but nut_daemon will not start.
Backend:
022-11-22T09:54:50-05:00 Error configd.py [934eb004-eebf-4a8e-99d5-8538a71af61a] Script action failed with Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 482, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1.
General:
2022-11-22T09:53:47-05:00 Error upsmon UPS [BN1500M2]: connect failed: Connection failure: Operation timed out
2022-11-22T09:52:27-05:00 Notice upsmon UPS BN1500M2 is unavailable
https://www.apc.com/us/en/product/BN1500M2/apc-backups-pro-1500va-120v-avr-lcd-2-usb-charging-ports-10-nema-outlets-4-surge/
Thanks.
Logged
RamSense
Hero Member
Posts: 594
Karma: 10
Re: Getting NUT to work via USB cable connection
«
Reply #1 on:
November 22, 2022, 05:32:20 pm »
Hi,
I have installed the plugin APCUPSD and got it up and running with a few clicks. I did not test NUT plugin.
Have you tried os-apcupsd?
Plugin details
APCUPSD - APC UPS daemon
Apcupsd, short for APC UPS daemon, can be used for controlling all APC UPS models.
It can monitor and log the current power and battery status, perform automatic
shutdown, and can run in network mode in order to power down other hosts on a LAN.
This plugin allows you to configure an APC UPS for use with OPNsense using the
Apcupsd project. The setup page allows you to set the most common options for
connecting your UPS to your OPNsense router and a status page for the UPS
status. It also includes support to act as an APC Netserver.
WWW:
http://www.apcupsd.org/
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Getting NUT to work via USB cable connection