On 2/2/07, Vladimir I. Umnov <[EMAIL PROTECTED]> wrote:
This means that NUT with upssched set their own timer. I think this is missing functionality. I need UPS monitoring software query my UPSes (APC cannot work with many UPSes in native mode, but can do such query) for current battery level and current estimated run time each 5 seconds. And if it reaches configured value, take appropriate action.
You should consider that many USB UPSes will take longer than 5 seconds to update everything. Rob is still correct in that you probably want to wait for an "on battery" signal for the UPS. Then you can poll it with whatever you want, including upsc in a loop, or your own custom client. The network protocol is not difficult. There are only a few good reasons to poll the battery level while the UPS is online; namely, you did not allow it enough time to recharge before coming back online after a power failure, the battery is bad, etc. A good UPS will monitor these things during the self-test. Also, a lot of the UPSes supported by NUT will allow you to adjust the battery level at which they send the "low battery" signal. This automates your scenario somewhat. -- - Charles Lepple _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser