Hi Cristi,

Best is to use zmq to make control requests. The format is consistent in
the underlying protocol. What you're seeing is just the way m2sh displays
an empty response.


On Wed, Jul 24, 2013 at 4:22 AM, Cristi Mocanu <[email protected]> wrote:

> Hello!
>
> I am trying to write a collector for OpenTSDB for Mongrel, and I'm
> having a few difficulties getting the information I want.
>
> First of all, I need to get the number of requests received until a
> certain time. I noticed that m2sh control doesn't show that information,
> and I don't know where else to look.
>
> Secondly, I noticed that when there is only one connection esablished to
> Mongrel, the format of the output of "m2sh control status what=net"
> differs from when there is more than one connection. I'd like to know
> how I can make the output look the same for any number of connections (
> I like the output for several connections better ). Here's an example:
>
> One connection:
>
> id:  741
> fd:  26
> type:  1
> last_ping:  0
> last_read:  0
> last_write:  0
> bytes_read:  12577740
> bytes_written:  1108575
>
>
> Several connections:
>
> id  fd  type  last_ping  last_read  last_write  bytes_read bytes_written
> 741  26  1  0  0  0  12945708  1140975
> 742  27  1  0  0  0  77811  6750
>
> Thank you.
>



-- 

Justin Karneges

Fanout, Inc.

530-220-7222

Reply via email to