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

    NUT battery.charge.low variable resets

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.8k 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.
    • F
      feadin
      last edited by

      Using pfSense 2.0.1 x64 with NUT 2.2.2_5 pkg 1.4
      My UPS battery is old so I need to increase the value of battery.charge.low so my servers will have enough time to shutdown. I added "actions = set" at the end of the monuser entry in upsd.users and used the command upsrw to change the battery.charge.low variable value. So far so good, it works, but the problem is this variable resets on every reboot. Is there a way to keep it at the setting I want? I'm thinking on hardcoding the "actions = set" value on the NUT package files and then add a crontab entry to reset it every once in a while but I'm wondering if there is a better solution to this. I'd update the form to change it using the GUI of the NUT package if I could, but unfortunately I don't have any spare time atm to do that :(

      Thanks!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.