[Nut-upsuser] Incorrect battery.runtime.low being reported?

Mike Lee curby+forums at cur.by
Sun Mar 6 06:40:36 UTC 2016


Hi folks, I have a curious issue I'm trying to understand.  I'll give
my problem description first, then suggested metadata below.

My setup is as shown in
http://networkupstools.org/docs/user-manual.chunked/images/advanced.png,

where my UPS is connected to my NAS via USB, and other computers as
well as the NAS are powered by the UPS.  As a test, I configured the
NAS to enter safe mode, direct the other machines to shut down, then
shut down the UPS, after one minute on battery.  The test worked fine,
and everything shut down in the correct order and came back up when
power returned.

My normal configuration is intended to maximize uptime so I want the
above sequence to happen when the UPS reports "OB LB" instead of after
one minute OB.

As part of the desired second configuration, I reset the UPS to report
low battery when it had 10 minutes (600s) of estimated battery left.
However, battery.runtime.low as reported to NUT is still the default
of 120.

Ideally, I'd like to fix any possible configuration/administration
mistakes so that upsc correctly reports the 600 value as set on the
UPS itself.  However, I'd also like to keep using the software as
provided by my NAS manufacturer to make upgrades easier.

If this miscommunication between the UPS and NUT can't be fixed, I
want to confirm that it won't cause the entire infrastructure to wait
until there are only 120 seconds left before powering down.  In other
words, I want to ensure that the 600-second value configured on the
UPS will be honored.

I read the docs and am not using override.battery.runtime.low.  I just
want to sanity check/confirm that the 120 value given by upsc will not
override the the 600 value on the UPS itself.

Thank you!

--Mike

> OS name and version,

Synology DSM 5.2-5644 Update 5

`uname -a` gives:

Linux nas 3.10.35 #5644 SMP Fri Jan 22 13:39:32 CST 2016 x86_64
GNU/Linux synology_avoton_1815+

> exact NUT version,

Not exactly sure how to query DSM for package versions, but `upsc` reports:

Network UPS Tools upsc SDS5-2-2015Q1branch-5619-150904

> NUT installation method: from source tarball, package or Subversion,

Included with default DSM v5.2 distribution (specific version above)

> exact device name and related information (manufacturing date, web pointers, …),

APC SMT1000, `upsc` reports:

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.runtime: 5460
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 27.1
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS 1000
device.serial: XXXXXXXXXXX
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 5
driver.parameter.port: auto
driver.version: SDS5-2-2015Q1branch-5619-150904
driver.version.data: APC HID 0.95
driver.version.internal: 0.38
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: COM 02.1 / UPS.05.D
ups.mfr: American Power Conversion
ups.mfr.date: 2010/11/26
ups.model: Smart-UPS 1000
ups.productid: 0003
ups.serial: XXXXXXXXXXXX
ups.status: OL
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.vendorid: 051d



More information about the Nut-upsuser mailing list