Thanks for the likely explanation, Ted.
warning, "REPLACEBATT" to the administrator. However, it is an annoyance
bug, not a critical bug. The worst case is that someone wastes money
replacing batteries.
Post by Ted MittelstaedtIf a UPS is queried too quickly after it produces the results of a
prior query, it will often respond with zeros.
I don't know if you can call this a bug or just an artifact of the slow
CPU that is in a typical UPS, and I don't know if all of them do it.
But I do know when I was writing my client for apcupsd that I had to
add delays into the status query because apcupsd also seems to suffer
the same restriction and does not buffer or otherwise throttle
successive queries that come in too fast.
Most likely what is happening here is the slave apcupsd is polling to
see if the master is alive again, then finally sees that it -is- alive
again then doesn't give it enough time before sending another status
query. So you get 2 status queries back-to-back, and apcupsd sends
them to the ups too quickly then gets zeros. It then corrects later on
after settling into it's regular poll cycle.
Ted
Post by Allan DyerI think this is a bug because the message, "ONLINE REPLACEBATT" is
inaccurate and misleading: The battery does not need replacing.
In detail, the spurious message occurs immediately after communications
2017-04-19 13:00:24 +0800 Communications with UPS lost.
2017-04-19 13:01:28 +0800 Communications with UPS restored.
2017-04-19 13:01:28 +0800 UPS battery must be replaced.
So, it is not producing the message because the communications is lost,
perhaps it knows it has re-established communications, but has not yet
received the battery status?
Regards
Allan
Post by Ted MittelstaedtI see that too but when the network master apcupsd comes back online the
slaves
go back to normal.
Why do you think this is a bug? Essentially when the master is offline
you are
telling the slaves to connect to an unused IP address.
If rebooting the master caused the slaves to all initiate a shutdown -
THAT I would call
a bug!
Ted
Post by Daniel BornAfter installing version 3.14.14 apcupsd on all my linux computers, I
noticed this situation: if I reboot the network master apcupsd, while it
is offline, the network slave shows "ONLINE REPLACEBATT" status instead
of "ONLINE SLAVE". I just replaced the UPS' battery a little over a
month ago and while the master is running, everything is fine.
I figured this was a possible bug with version 3.14.14 so I reinstalled
the previous stable version 3.14.12 on the x86 computer (master) and
version 3.14.10 on the raspberry pi (slave) and I still see the same
behavior. I don't recall seeing that in the past.
Anybody have an explanation for this? or can suggest something to
investigate?
Thanks,
Daniel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users