Netgate 2100 & NUT or apcusbd w/ BX1000M
-
Hey guys. I have been trying to get my APC BX1000M to function with either NUT or apcusbd with no success. The BX1000M is a serial (via RJ45) model, thus, I have a serial to USB cable connecting the two. I have an indentical one USB'd to my computer and have 0 issues with PowerChute. Not sure if there is some limitation on the pfSense router with it using a serial based-USB connection. Here is what I get when I tried NUT tonight:
I had tried apcusbd in the past, and I recall it just looking for the connection constantly, with no success. I have another cable, and have tried it. But both cables work fine to my computer. I've also rotated the Power Supplies to rule out any problem there.
Any advise would be greatly appreciated.
Cheers!
-
Does the 2100 correctly show the USB/serial adapter when it's conected? Check the system log or dmesg after connecting it.
Is NUT configured to use the correct port?
Steve
-
hey steve!
yes. i see it "reacting" to the USB device. i was able to figure it out! by this reddit post: https://www.reddit.com/r/PFSENSE/comments/jv85j1/pfsense_ups_with_nut_as_slave/
I now have my UPS being seen:
now that it is working, will graceful shutdown be automatic in the event of power loss due to this attribute?
-
@garjaxon said in Netgate 2100 & NUT or apcusbd w/ BX1000M:
now that it is working, will graceful shutdown be automatic in the event of power loss due to this attribute?
Variable ups.delay.shutdown is how long (in seconds) the UPS waits to cut power after being instructed to do so by the software (NUT). Telling the UPS to cut power is one of the final steps in a NUT driven shutdown, and this gives the OS 20 more seconds to finish before loosing power.
By default NUT does not initiate a shutdown until such time as the UPS declares a low battery situation. I do not generally recommend changing this behavior, although it is okay to change UPS parameters controlling when a low battery situation is declared (like 10% instead of 5% kind of thing). See your UPS manual for information on what you can configure. If your UPS is well supported in NUT, you can also use the upsrw command to see what configuration is available.
-
@garjaxon said in Netgate 2100 & NUT or apcusbd w/ BX1000M:
https://www.reddit.com/r/PFSENSE/comments/jv85j1/pfsense_ups_with_nut_as_slave/
Btw, I'm not sure what you took from that thread, but you probably do not want most of the suggestions from that thread. In particular, if you did anything with ignorelb that's generally a bad thing.
BTW, it's quite likely that the original problem was one of permissions, which is addressed by rebooting or unplug/re-plug of the USB connection.
-
-
@garjaxon Yea, I would get rid of all of it except possibly for the
user = root
in ups.conf. But test to see if you actually need it.
The RUN_AS_USER in upsmon.conf will be needed if you want smtp notifications in the current version of pfSense, but should not be needed when the next major version of pfSense is released.
-
lol yeah, @dennypage with just that it still works.