Configure NUT client

  • Hello,


    My system topography is thus: I have an UPS (APC ES 700) connected to a Synology NAS and I was looking to monitor/share this from my OpenMediaVault NAS via the network. i.e. OMV would be the client.


    I am wondering how to configure OMV to do this - I installed the NUT plugin but I am unsure how to configure via the UI. Can anybody offer any advice?


    Almost forgot - I'm using OMV 0.5.31.


    Regards,
    Colin

  • Thank you.


    Using this in my OMV UPS driver configuration how does the OMV box then know the location (ie. the IP address) of the Synology NUT server which is physically connected to the UPS?

  • Hello,


    Can someone please help me too for ups configuration.
    I have an RIELLO IPG 800 with usb interface.


    # lsusb -v
    Bus 004 Device 002: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x04b4 Cypress Semiconductor Corp.
    idProduct 0x5500 HID->COM RS232 Adapter
    bcdDevice 0.00
    iManufacturer 1 Cypress Semiconductor
    iProduct 2 USB to Serial
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 41
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 4 Sample HID
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 0 No Subclass
    bInterfaceProtocol 0 None
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.00
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 37
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 10
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 10
    Device Status: 0x0000
    (Bus Powered)



    I have the following error:


    Failed to execute command 'upsc RIELLO_IPG800 2>&1': Error: Driver not connected
    Error #4000: exception 'OMVException' with message 'Failed to execute command 'upsc RIELLO_IPG800 2>&1': Error: Driver not connected' in /usr/share/openmediavault/engined/rpc/nut.inc:151 Stack trace: #0 [internal function]: OMVRpcServiceNetworkUPSTools->getStats(NULL, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc.inc(62): OMVRpcServiceAbstract->callMethod('getStats', NULL, Array) #3 /usr/sbin/omv-engined(495): OMVRpc::exec('Nut', 'getStats', NULL, Array, 1) #4 {main}



    Thank you in advance.
    Luis

  • Is there any way to stop the autoshutdown of the UPS after the system shuts down? I want the UPS to stay up and continue powering my router. I tried changing the mode to "none" in the nuts.conf (It appears the scripts only initiate autoshutdown for "netserver" and "standalone") but everytime the service restarts it overwrites my nuts.conf back to standalone.


    I also tried manually editing nuts-server and nuts-client in /etc/init.d to stop the autoshutdown from being called/executed but everytime about a minute after the service finishes it's shut down the UPS powers down. The UPS does have a "Green Mode" where it can internally detect the primary load going offline and automatically power down but that is disabled and I've tested that by manually powering off the server and the UPS trucks along just fine.


    Any ideas? The UPS is a APC Back-UPS Pro 1500VA connected via USB.

  • You can setup the UPS, using ACP software (and Windows unfortunately), to shutdown at some percentage of discharge. But this is configuring the firmware of the UPS, direct.


    The Linux Nut client powers down your server, based on time or at "low battery". ("Low battery" is another settable parameter with the ACP software.) I don't think the NUT client turns the UPS off.


    EDIT: I might be wrong about this. I queried my UPS with command for my driver (upsc 1000xs@localhost) and one of the returned parameters was ups.timer.shudown -1


    In any case, you can test this by setting your server to shutdown based on time, 2 seconds, then unplug the UPS. I think you'll find that the UPS remains on line, after your server shuts down.


    If your UPS is shutting down quickly, without much load, the batteries may be worn out or you may need to do a run down calibration cycle.


    With your model number in hand, go to the APC web site, get the software, and check it out. If you have a lot of short power outages, in your location, I'd set "low battery" at a higher percentage. (Maybe 30 or 40%) They'll last longer. Otherwise, stock firmware settings work fine.

  • Hi,


    I have a ODROID HC2 conected to my APC UPS with USB. I have installed NUT with the OMV 5 pluggin in the OMV web interface. Everything works fine and ODroid is powering off when battery is low.


    I now want to also shutdown my Raspberry Pi through NUT (the Pi is not connected with USB).


    I have set up the NUT in standalone with remote monitoring enabled.

    I have tried several tutorials with comands but :

    1) my Pi is not stopping when power is shut down. Although if I do a "upsc ups@Odroid IP" from the Pi I can see the UPS data on the Pi...look like the Pi is able to see the ups but don't get the order to shut down.


    2) OMV 5 errase all the command enteted manually in the different nut config files (which might be normal as the web interface of OMV is managing NUT).


    Is there a tutorial that explains how to setup a 2 device management with only one connected to the ups with usb under OMV 5 web interface ?


    Otherwise can somebody help me ?


    I am begginer in this world. Thanks for your help :) !

  • I think the best way is to have your ups set up to shutdown only one server. I looked into this some time ago and never came up with a solution that I could implement. If you are handy with code I think there is a way to shut down a server from the primary server. All of the servers are on a ups but only one communicates with the ups via nut. All the other machines shut down via the primary machine. Maybe someone else will chime in with a solution - for both of us. In the mean time shake the Google tree along those lines.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!