Hi Mark,
Thank you very much for the information.
About the documentation, I was unable to find a specific command in
collectl documentation on sockets [1]. So I tried googling and found few
inputs [2] [3] which suggested me different mechanism which did not work
perfectly.
collectl -Aserver:port does what I need.
Thank you for the input on this handy and lightweight tool for monitoring :)
[1] http://collectl.sourceforge.net/Sockets.html
[2] http://linux.die.net/man/1/collectl
[3] http://manpages.ubuntu.com/manpages/trusty/man1/collectl.1.html
On Fri, Feb 26, 2016 at 2:15 PM, Mark Seger <[email protected]> wrote:
> Looks like you have the wrong syntax, is there a bug in the
> documentation? One other handy way to debug socket issues is with the
> debug mask of 64 (see the beginning of collectl for all the various
> values). Anyhow, here's how to listen on port 1234:
>
> mjs@blkjak:~/racks/2.0$ collectl -Aserver:1234 -d64
> Server socket opened on port 1234
> waiting for 1 second sample...
> Looking for connection...
> Looking for connection...
> Looking for connection...
> Socket 'can read'
> Looking for connection...
> Looking for connection...
>
> and I made the connection like this:
>
> mjs@blkjak:~/racks/300$ /usr/share/collectl/util/client.pl localhost:1234
> Socket opened on localhost:1234
> 27 26 1470 3535 200 15 0 0 0 0 0
> 0
> 28 26 1567 5444 0 0 32 2 0 0 0
> 0
>
> hope this helps move you forward...
>
> -mark
>
> On Fri, Feb 26, 2016 at 5:24 AM, Ashansa Perera <[email protected]> wrote:
>
>> Hi,
>>
>> I am trying to push collectl data to a given port number through a
>> socket connection and I am going to use the server mode with -Aserver
>> flag.
>>
>> If I use collectl -Aserver and I could get the data from the default
>> port. Since I need to change the port, I used the below command
>>
>> collectl -Aserver --address myIP:port
>>
>>
>> But it failed with the error Error: Could not create socket to ip:port
>>
>>
>> I tried changing the port to the default port number (2655) too and still
>> it gives the same error saying Could not create to socket.
>>
>> Could you please suggest the correct way to change the port when running
>> collectl with -A option.
>>
>> And is it possible just to give the port without giving the IP similarly
>> to -Aserver , so that it will write to the current host with the given
>> port?
>>
>> Thank You.
>>
>> MSc Researcher.
>> KTH Royal Institute of Technology
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Collectl-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/collectl-interest
>>
>>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Collectl-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/collectl-interest