Re: [Gluster-devel] Chnage in exit codes of #gluster volume heal command

2014-05-28 Thread James
On Wed, May 28, 2014 at 1:10 PM, Jeff Darcy wrote: >> In addition, I would recommend considering using --xml and that >> picking out the field you want to look at with a quick xml parser, and >> then going with that directly. More stable than watching for a >> specific return code. > > Parsing XML

Re: [Gluster-devel] Chnage in exit codes of #gluster volume heal command

2014-05-28 Thread Jeff Darcy
> In addition, I would recommend considering using --xml and that > picking out the field you want to look at with a quick xml parser, and > then going with that directly. More stable than watching for a > specific return code. Parsing XML to get one bit of information doesn't seem like a great id

Re: [Gluster-devel] Chnage in exit codes of #gluster volume heal command

2014-05-28 Thread James
On Wed, May 28, 2014 at 6:38 AM, Vikhyat Umrao wrote: > Hi, > > Can we change the exit codes of #gluster volume heal command if fields like > `to be healed`, `heal-failed` and `split-brain` have non zero values. > It will help in a monitoring script to capture the heal details. > > Please let me k

Re: [Gluster-devel] Chnage in exit codes of #gluster volume heal command

2014-05-28 Thread Pranith Kumar Karampuri
- Original Message - > From: "Vikhyat Umrao" > To: gluster-devel@gluster.org > Sent: Wednesday, May 28, 2014 4:08:14 PM > Subject: [Gluster-devel] Chnage in exit codes of #gluster volume heal command > > Hi, > > Can we change the exit codes of #glu

[Gluster-devel] Chnage in exit codes of #gluster volume heal command

2014-05-28 Thread Vikhyat Umrao
Hi, Can we change the exit codes of #gluster volume heal command if fields like `to be healed`, `heal-failed` and `split-brain` have non zero values. It will help in a monitoring script to capture the heal details. Please let me know your inputs. Thanks, Vikhyat _