shutdown Opnsese 19 from UPS [SOLVED]

Started by bdario, July 02, 2019, 06:12:32 PM

Previous topic - Next topic
July 02, 2019, 06:12:32 PM Last Edit: July 25, 2019, 07:37:05 AM by bdario
Hello there,
is there a way to graceful shutdown Opnsense 19 in case of blackout?
I mean something similar as a command coming from an UPS
Can someone drive me to an appropriate documentation?
Thank so much
Best regards
Dario

Hi Dario,

Install the os-nut plugin and get NUT to manage your UPS, either directly or through the network.

Bart...

dear bartjsmit,
thanks for the quick response.
I'll try your suggestion asap.
Best regards
Dario

Hi Bart,
I'm trying to apply your suggestion:
I installed nut plugin into the OpnSense appliance
the UPS is a RIELLO ADG400 connected via USB to the appliance
I tried to configure the nut plugin with USBHID-driver and BlazerUSB-driver but no one works.
The UPS doesn't have LAN port, just USB
Is there a solution to this issue?
Thanks so much for your precious suggestion
with regards
Dario

When you connect USB cable any news in system.log?

Hi Dario,

Do you mean the Riello IDG 400? That is supported: https://networkupstools.org/stable-hcl.html but doesn't use the HID or Blaze driver: https://networkupstools.org/docs/man/riello_usb.html

I use a Raspberry Pi as the NUT server since it is cheap, silent and low-power. It may also support a later version of the software.

Bart...

I can add the driver if you are willing to test it :)

Hello everyone,
I am willing to try the riello_usb driver on my appliance (OpnSense 19.1.4-amd64) starting next week.
I only ask for explanations about the installation of the driver
Please remember that my goal is to have a graceful shutdown in case of blackout
Note: the Riello IDG400 UPS is working fine with XigmaNAs (the shutdow is ok)
I thank you all and I wish you a pleasant weekend
Dario

Hello,
just an update:
taking a look inside the appliance I found the riello_usb driver:
# ll /usr/local/libexec/nut/riello_usb
-r-xr-xr-x  1 root  wheel  87848 Jul  2 04:08 /usr/local/libexec/nut/riello_usb*

Now I'm a bit confused, why I don't find the riello_usb driver in the Services: Nut: Configuration page of OpnSense?

With Regards
Dario




Hi mimugmail,
when the 19.7 rel will be ready for dowbload ?
Thaks
Dario



Hello mimugmail,
I just installed the 19.7 rel and enabled the os-nut plugin but still don't find a driver for Riello IDG400 UPS
where am I wrong?
Regards
Dario

Hi can you remove the plugin and do via console:

pkg install os-nut-devel

If it's working I'd push it to stable, ok?