Need NUT not to power off the UPS

  • Hi,


    I've actually configured my NAS with the NUT plugin and my UPS connected via usb, using the usbhid-ups driver. When there is a power interruption, it waits 20 seconds and switches off the NAS. This is good. The problem is that after that, it powers off also the UPS itself, disconnecting from the power source also the other devices that I have connected to the ups (VDSL/VoIP router). I would like that after powering off the NAS, the UPS keeps providing energy to my router until the battery is empty. I think that i should use the "ondelay" and "offdelay" arguments mentioned here:
    http://www.networkupstools.org/docs/man/usbhid-ups.html
    but I could not understand how to set them properly. Any suggestions?


    Thanks a lot

    OMV last 64bit on AMD Sempron LE-1250 - 4GB ram - Leaf Computer 4 port SATA II pci
    6x1TB WD Green RAID5 - IDE 80GB+60GB JBOD - 60GB SSD OS
    NZXT Source 210 Elite

    • Official Post

    Did you try putting the offdelay and ondelay in the Driver Configuration Directives? I think that setting can be set per device and wouldn't have to be in the global section. If it needs to be in the global section, I guess we need to file a request in bugtracker to add an extra options field or off/on delay fields in the plugin.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I haven't put anything in the directives because I didn't understand how to use those ondelay and offdelay options. That is why I asked. Unfortunately I don't know NUT very well, so I don't know where to start.


    Actually these are my directives:

    Code
    [ups]
    driver = usbhid-ups
    port = auto
    desc = "xp70"


    with a shutdown timer of 20 seconds, starting when the UPS goes on battery. Thanks

    OMV last 64bit on AMD Sempron LE-1250 - 4GB ram - Leaf Computer 4 port SATA II pci
    6x1TB WD Green RAID5 - IDE 80GB+60GB JBOD - 60GB SSD OS
    NZXT Source 210 Elite

    • Official Post

    Sorry, I misunderstood a little bit :) I'm not exactly sure how those values work if the power comes back on before the length of the delay. You might have to experiment with it.

    Code
    [ups]
    driver = usbhid-ups
    port = auto
    desc = "xp70"
    offdelay = 7200
    ondelay = 7210

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • what I need to do is to simply keep the UPS on also after that the NAS is switched off because of a power interruption. A the moment, by default, it switches off itself after the NAS is switched off securely. I need that it keeps providing power to the other devices connected to it until the power comes back, or the battery dies. So I thing that I should set that delay to infinity.. not sure if it is possible. thanks

    OMV last 64bit on AMD Sempron LE-1250 - 4GB ram - Leaf Computer 4 port SATA II pci
    6x1TB WD Green RAID5 - IDE 80GB+60GB JBOD - 60GB SSD OS
    NZXT Source 210 Elite

Participate now!

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