networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.12k stars 353 forks source link

input voltage = 256 when no input #1321

Open Mic-Pod opened 2 years ago

Mic-Pod commented 2 years ago

Hi, I have noticed that when power goes down, nut is showing input.voltage: 256.0 instead of input.voltage: 0 OS: Ubuntu Server 20.04.4 NUT version: 2.7.4

upsc ups
input.voltage: 256.0
input.voltage.nominal: 230
ups.status: OB DISCHRG
Mic-Pod commented 2 years ago

When using apcupsd, values are displayed correctly:

apcaccess status
DATE     : 2022-03-01 20:14:45 +0100
STATUS   : ONLINE
LINEV    : 230.0 Volts
apcaccess status
DATE     : 2022-03-01 20:15:33 +0100
STATUS   : ONBATT
LINEV    : 0.0 Volts
jimklimov commented 2 years ago

Thinking of APC, could this be another case of LogMin/LogMax mismatch? However if this is a packaged "vanilla" NUT 2.7.4 release, it might be not as strict about this @.*** fixed that later) and the problem could be elsewhere...

Message ID: @.***>

Mic-Pod commented 2 years ago

Is there anything I can do to help troubleshoot this issue?

jimklimov commented 2 years ago

I think one idea for troubleshooting is to try a local build from current NUT master branch, just to check if recent years of bug-fixes solved this one too.