Belkin F6C1200-UNV on Ubuntu 7.04, megatec_usb driver, Every few minutes I get a beep and a "UPS not available" message that seems to be bogus; upsc reports real data, not at complaint that it's stale. Is there some timeout I need to lengthen? Also, shouldn't upsc report the poll time associated with the data it displays? -- >>esr>>
> Belkin F6C1200-UNV on Ubuntu 7.04, megatec_usb driver, > > Every few minutes I get a beep and a "UPS not available" message that > seems to be bogus; upsc reports real data, not at complaint that it's > stale.What's in the logfiles? Is this message generated by the driver, the server or the client?> Is there some timeout I need to lengthen?Maybe, but then we first need to know where the timeout originates. Chances are this is in the driver, but without information from the system logs and/or debug information it is hard to tell.> Also, shouldn't upsc report the poll time associated with the data > it displays?Which poll time? The value of 'driver.parameter.pollinterval' will be displayed by 'upsc' provided it is not too old. This value can be changed through the 'pollinterval' parameter in 'ups.conf' (see 'man 5 ups.conf'). The default of 2 seconds may be a little too fast if the UPS is slow to respond and/or lots of data need to be transferred. Also, the megatec driver will declare the UPS stale if it misses a single status poll. That may be a little too strict, so you may need to allow for missing one or two polls before declaring it stale, to allow for temporary communication problems when the system is too busy. Look for 'dstate_datastale()' in 'drivers/megatec.c'. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
Alexander I. Gordeev
2007-May-23 14:14 UTC
[Nut-upsuser] Bogus "UPS not available" messages
On Wed, May 23, 2007 at 07:36:19AM -0400, Eric S. Raymond wrote:> Belkin F6C1200-UNV on Ubuntu 7.04, megatec_usb driver, > > Every few minutes I get a beep and a "UPS not available" message that > seems to be bogus; upsc reports real data, not at complaint that it's > stale. >Please post the log. grep "UPS not available" returns nothing, so I suppose that the original message was about data getting stale, right? I've noticed from your previous logs that your UPS sometimes doesn't return any data. This is the thing. I had nearly the same problem with my own UPS (supported by 'krauler' subdriver). I've performed a bunch of tests on several machines, which showed me that the best thing I can do is to send requests until I get proper data (without interrupt). I tried to explain results here: http://lists.alioth.debian.org/pipermail/nut-upsdev/2007-February/001724.html in the section called "UPS No Ack" problem". My UPS returns this string "UPS No Ack" pretty often (13%-80% times, on different requests) instead of the real data. So, I just use a workaround. If this is the problem you've written about, I suggest you to do the same thing - test your UPS's behaviour - and then fix the problem in the 'agiler' subdriver, if the amount of messages is considerable. -- Alexander