Suggestion for a UPS

  • In the meantime, can someone help me out with installing the right plugin and whatnot in the OMV?

    Go to OMV-Extras (wrote to fast) System -> Plugins and install the Nut-plugin, ;)

    Re-read the thread (or most of the 1st page) and most pointers are here, :)


    I have to install usbhid-ups driver, right?

    The plugin will take care of everything, ;)

  • If I remember correctly, wait to install or activate the plugin until the UPS is connected. When the plugin is installed type usbhid-ups in the Comments section of the plug-in’s setting page.

    Easy data backup: 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) - Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, Wetty, & Heimdall - NanoPi M4 (v.1): backups using Rsync and Rsnapshot - Odroid XU4 (Using DietPi): PiHole - hc2, xu4, Pi 3B+, Odroid H2, and VirtualBox: Testing and playing - Mac user converting to Linux, Debian 10 KDE.

  • type usbhid-ups in the Comments section of the plug-in’s setting page.

    At least in my case, everything was already edited on the Services -> UPS


    All it took was to click Enable

    The rest is default (except Shutdown Mode):

    Code
    Mode=Standalone
    Identifier=ups
    driver = usbhid-ups #<----already filled
    port = auto # <----- already filled
    Shutdown Mode= UPS reaches low battery (my load is around 5%, a bit overkill, for now) #<---- My choice
  • I’m out of the house right now, but thanks to you Soma (wildcard Duckdns & reverse proxy Swag) here’s a screen shot from my iPhone of my settings. Yes, most of it is preset when it is installed.

    Easy data backup: 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) - Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, Wetty, & Heimdall - NanoPi M4 (v.1): backups using Rsync and Rsnapshot - Odroid XU4 (Using DietPi): PiHole - hc2, xu4, Pi 3B+, Odroid H2, and VirtualBox: Testing and playing - Mac user converting to Linux, Debian 10 KDE.

  • In post No. 3 of this thread I posted a link to the list of controllers that best suit each UPS. You have to find the model and use the controller that says there.

    The best thanks to the help provided is to report what your solution was. The next one will thank you :thumbup:

  • It's this openmediavault-nut 5.5.2-1 plugin? I just want to be sure.

    Yes, ;)


    If your UPS usb cable is already connected to the OMV, just install it.


    Then go to the Services section and UPS will show there.


    The page that Agricola showed will be seen.

    Just click "Enable" and you can see the UPS status on the Diagnostics -> Services page

  • According to the list chente linked to the Eaton Eclipse requires a mgr-shut setting.


    Edit: it does indeed take the usbhid-ups setting. Sorry all and thanks Soma for the correction.

    Easy data backup: 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) - Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, Wetty, & Heimdall - NanoPi M4 (v.1): backups using Rsync and Rsnapshot - Odroid XU4 (Using DietPi): PiHole - hc2, xu4, Pi 3B+, Odroid H2, and VirtualBox: Testing and playing - Mac user converting to Linux, Debian 10 KDE.

    Edited once, last by Agricola ().

  • According to the list chente linked to the Eaton Eclipse requires a mgr-shut setting.

    It's the Eaton Ellipse ECO 650 USB FR:


    It uses the usbhid-ups, ;)

  • I installed the plugin, enabled it, but when I try to Apply changes I get this error:


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color nut 2>&1' with exit code '1': debian: ---------- ID: configure_nut_nut_conf Function: file.managed Name: /etc/nut/nut.conf Result: True Comment: File /etc/nut/nut.conf is in the correct state Started: 11:37:52.119324 Duration: 19.866 ms Changes: ---------- ID: configure_nut_ups_conf Function: file.managed Name: /etc/nut/ups.conf Result: True Comment: File /etc/nut/ups.conf is in the correct state Started: 11:37:52.139295 Duration: 6.108 ms Changes: ---------- ID: configure_nut_upsd_conf Function: file.managed Name: /etc/nut/upsd.conf Result: True Comment: File /etc/nut/upsd.conf is in the correct state Started: 11:37:52.145503 Duration: 7.645 ms Changes: ---------- ID: configure_nut_upsd_users Function: file.managed Name: /etc/nut/upsd.users Result: True Comment: File /etc/nut/upsd.users updated Started: 11:37:52.153249 Duration: 9.426 ms Changes: ---------- diff: --- +++ @@ -1,11 +1,11 @@ # This file is auto-generated by openmediavault (https://www.openmediavault.org) # WARNING: Do not edit this file, your changes will get lost. [admin] -password = PVDz6eUuYlezDmpK +password = 1OwqBnIpuDnKExNy actions = set actions = fsd instcmds = ALL [monmaster] -password = TX5gS87UbSjtq3zC +password = P4gvqYiAOMnYttum upsmon master ---------- ID: configure_nut_upsmon_conf Function: file.managed Name: /etc/nut/upsmon.conf Result: True Comment: File /etc/nut/upsmon.conf updated Started: 11:37:52.162777 Duration: 12.616 ms Changes: ---------- diff: --- +++ @@ -1,6 +1,6 @@ # This file is auto-generated by openmediavault (https://www.openmediavault.org) # WARNING: Do not edit this file, your changes will get lost. -MONITOR ups 1 monmaster TX5gS87UbSjtq3zC master +MONITOR ups 1 monmaster P4gvqYiAOMnYttum master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD "/sbin/upssched" ---------- ID: configure_nut_upssched_conf Function: file.managed Name: /etc/nut/upssched.conf Result: True Comment: File /etc/nut/upssched.conf is in the correct state Started: 11:37:52.175492 Duration: 6.978 ms Changes: ---------- ID: configure_nut_default_upssched_cmd Function: file.managed Name: /etc/default/upssched-cmd Result: True Comment: File /etc/default/upssched-cmd is in the correct state Started: 11:37:52.182569 Duration: 1.261 ms Changes: ---------- ID: remove_nut_udev_serialups_rule Function: file.absent Name: /etc/udev/rules.d/99-openmediavault-nut-serialups.rules Result: True Comment: File /etc/udev/rules.d/99-openmediavault-nut-serialups.rules is not present Started: 11:37:52.183918 Duration: 0.382 ms Changes: ---------- ID: start_nut_driver_service Function: service.running Name: nut-driver Result: False Comment: Job for nut-driver.service failed because the control process exited with error code. See "systemctl status nut-driver.service" and "journalctl -xe" for details. Started: 11:37:52.195463 Duration: 88.938 ms Changes: ---------- ID: start_nut_server_service Function: service.running Name: nut-server Result: True Comment: Service restarted Started: 11:37:52.302447 Duration: 702.857 ms Changes: ---------- nut-server: True ---------- ID: monitor_nut_server_service Function: module.run Result: True Comment: monit.monitor: True Started: 11:37:53.006811 Duration: 6.864 ms Changes: ---------- monit.monitor: True ---------- ID: start_nut_monitor_service Function: service.running Name: nut-monitor Result: True Comment: Service restarted Started: 11:37:53.038467 Duration: 40.925 ms Changes: ---------- nut-monitor: True ---------- ID: monitor_nut_monitor_service Function: module.run Result: True Comment: monit.monitor: True Started: 11:37:53.079733 Duration: 7.676 ms Changes: ---------- monit.monitor: True Summary for debian ------------- Succeeded: 12 (changed=6) Failed: 1 ------------- Total states run: 13 Total run time: 911.542 ms


    And this:

    Code
    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color nut 2>&1' with exit code '1': debian:
    ----------
    ID: configure_nut_nut_conf
    Function: file.managed
    Name: /etc/nut/nut.conf
    Result: True
    Comment: File /etc/nut/nut.conf updated
    Started: 11:36:51.666682
    Duration: 21.489 ms
  • Do what the error tells you and publish the result

    systemctl status nut-driver.service

    journalctl -xe


    Also take a screenshot of your nut configuration in the GUI

    The best thanks to the help provided is to report what your solution was. The next one will thank you :thumbup:

    Edited once, last by chente ().

  • Here. But keep in mind that the plugin is not enabled now.



  • The log says: No matching HID UPS found


    nut comprises three parts:

    - the driver to read the from the UPS (started with upsdrvctl start)

    - the upsd daemon to publish the UPSes reading (started with upsd)

    - and clients to access the readings for the cli it is upsc <our UPS name>)


    The nut driver does not start unless the UPS is connected. Make sure the USB-Cable is plugged and the UPS is power on.

    or from the cli: lsusb

  • chente

    Added the Label resolved

Participate now!

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