Modify Battery Charge Low for your UPS using NUT server
Published on : 2025-07-01 15:40
This is a follow up of the post
DIR Installing and configuring NUT (Network UPS Tools) for your home lab
That post is already too long so an edit there seems useless.
This is why I chose to share the command used to set your UPS
battery charge low parameter in a dedicated page.
upsrw -s battery.charge.low=20 \
-u <username> \
-p <password> \
<ups_name@ups_host>
Consider setting this value between 10 and 40 depending on your UPS
load and battery health.
username and password values are the ones from
/etc/nut/upsd.users
ups_name is the one set in
/etc/nut/ups.conf
My UPS currently has this parameter at 10%. When the UPS battery is
at 10% the last computer in my cluster shutdowns and only the
modem and router are still powered on.
In case the battery gets depleted the modem and router turn off
also. In case the power comes back in the 10% - 0% window I don't
loose internet connectivity at all.
DIR Back to my phlog