David E. Wheeler wrote:
> On Dec 12, 2013, at 2:53 PM, Paul Theodoropoulos <[email protected]> wrote:
>
>   
>> It would be nice if there were a command to clear/reset the 'last error' 
>> field.
>>
>>     bucardo clear lasterror
>>     bucardo reset lasterror
>>
>> Something like that. Since an error is always shown as the last line of 
>> bucardo status syncname (if there has previously been an error), it's the 
>> first thing my eye grabs, and I have to remind myself to look further up to 
>> confirm that the actual current sync state is 'good'.
>>     

As a matter of interest (and that I could possibly write a patch for
this... Care to explain more?

I see this with bucardo status on my systems:

michelle@corkscrew:~$ bucardo status
PID of Bucardo MCP: 15446
 Name         State                                Last good    Time    
Last I/D    Last bad                Time
============+====================================+============+========+===========+=======================+===============
 dnsmm      | Good                               | 10:01:30   | 8m 22s |
0/0       | Dec 05, 2013 00:08:30 | 202h 1m 22s
 dnsrbls    | Good                               | 10:01:32   | 8m 20s |
0/0       | 01:01:33              | 9h 8m 19s
 dnsseq     | Good                               | 10:00:02   | 9m 50s |
0/0       | Oct 18, 2013 16:24:39 | 1337h 45m 13s
 sessions   | Begin txn (KID 15982)              | 10:09:43   | 9s     |
0/4       | Dec 10, 2013 18:35:21 | 63h 34m 31s
 sessionsdb | Sync public.sessions (KID 15976)   | 10:09:50   | 2s     |
6/9       | Dec 11, 2013 06:13:32 | 51h 56m 20s
 sorbsmm    | Sync public.timestamps (KID 25351) | 10:09:45   | 7s     |
16/64     | 07:57:56              | 2h 11m 56s
 sorbsmmseq | Begin txn (KID 15986)              | none       |       
|           | Dec 11, 2013 06:13:32 | 51h 56m 20s
 sorbsqs    | Begin txn (KID 16001)              | 10:08:30   | 1m 22s |
0/40      | Dec 10, 2013 18:55:49 | 63h 14m 4s
 sorbsstats | Good                               | 10:09:45   | 7s     |
0/0       | 06:09:27              | 4h 26s

Which shows quite a mixture.. you want to clear the 'last bad' field?

-- 
Michelle Sullivan
http://www.mhix.org/

_______________________________________________
Bucardo-general mailing list
[email protected]
https://mail.endcrypt.com/mailman/listinfo/bucardo-general

Reply via email to