• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

NUT Question

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 1.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    gregeeh
    last edited by Apr 28, 2022, 4:21 AM

    Hi all,

    I have an APC UPS connected to pfSense via USB and OpenMediaVault (OMV) setup to run as Netclient/Slave. OMV is set to shutdown after 15 mins on battery and this works just fine.

    If the UPS is still on battery and pfSense has not shutdown yet, but OMV has been shutdown and power is restored OMV will not power back ON. I have to physically turn it back ON. I have the OMV BIOS set to turn ON after a power failure but as there was never no power on OMV so it fails to turn ON.

    Can anything be done in the pfSense config to make OMV automatically turn ON in this situation?

    The 2 ups.conf are below.

    TIA

    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    [apcups]
    driver = usbhid-ups
    port = auto
    desc = No Comment
    
    
    
    user = root
    
    [apcups]
    ignorelb
    override.battery.charge.low = 40
    
    [apcups]
    driver=usbhid-ups
    port=auto
    

    PfSense running on Qotom mini PC
    CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
    UniFi AC-Lite access point

    D 1 Reply Last reply Apr 29, 2022, 4:22 PM Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 28, 2022, 1:13 PM

      If it's already off I don't think NUT can do anything. I don't believe it can power cycle the outlet for example. You might be able to do something with WoL. Does it have a BIOS option to power on on a schedule?
      It might be better to prevent the OMV shutting down until it really has to. Though I imagine that might shorten the battery run time. And risk data etc.

      Steve

      G 1 Reply Last reply Apr 29, 2022, 9:17 PM Reply Quote 1
      • D
        dennypage @gregeeh
        last edited by Apr 29, 2022, 4:22 PM

        @gregeeh said in NUT Question:

        I have an APC UPS connected to pfSense via USB and OpenMediaVault (OMV) setup to run as Netclient/Slave. OMV is set to shutdown after 15 mins on battery and this works just fine.

        Is the OMV a NUT client of the pfSense NUT server?

        When using NUT you do not want to clients to make independent decisions about when to shut down. This should always be initiated by the NUT server. Otherwise you can get into the situation of power being restored after the client decides to shut down but before the server decides to shut down. When this happens, the mains will never be cut, resulting in clients never rebooting. Which sounds like what you are experiencing.

        1 Reply Last reply Reply Quote 2
        • G
          gregeeh @stephenw10
          last edited by Apr 29, 2022, 9:17 PM

          @stephenw10 said in NUT Question:

          It might be better to prevent the OMV shutting down until it really has to.

          This sounds like the best solution. Rather then shutdown the OMV (NUT Client) in 15 minutes set it to low battery, like the NUT Server, then both will shutdown together and hopefully both come back on when power is restored.

          PfSense running on Qotom mini PC
          CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
          UniFi AC-Lite access point

          1 Reply Last reply Reply Quote 1
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received