[Nut-upsdev] timestamped debug output (was: upsd flapping in the breeze)
aquette.dev at gmail.com
Mon May 18 12:29:52 UTC 2009
2009/5/16 Arnaud Quette <aquette.dev at gmail.com>
> 2009/5/7 Daniel O'Connor <doconnor at gsoft.com.au>
>> On Wed, 6 May 2009, Arnaud Quette wrote:
>> > I think I've found something, but I would need an upsd debug output
>> > (level 3) to see what going on the state socket.
>> I've attached a log for you.
>> > A few more questions:
>> > - would you be able to test a patch?
> attached, with explanation.
> can you also test a real disconnection of the serial cable, and report back
> if everything is ok?
as a side note, debug timestamping is now available:
ie: mge-shut -DDDT -a ...
Network UPS Tools - MGE UPS SYSTEMS/SHUT driver 0.68 (2.4.1-1840:1845M)
14:27:25: debug level is '3'
14:27:25: entering upsdrv_initups()
14:27:25: entering setline(1)
14:27:25: entering shut_ups_start()
This is effective for upsd, upsmon, upsdrvctl and the drivers by using "-T".
The best, as told in the manpages, is to use it in conjunction with the
debug flags (ie -D...)
This should help out in troubleshooting timeframe problems.
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsdev