-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inputs.socketstat plugin: CLOSE-WAIT tcp traffic is not supported #14511
Comments
Hi, That output is not the same format as other messages, specifically the first few columns:
A typical message responds with two numeric columns If you look at the output of |
thanks,
The result of executing And the three states of |
Aaah thank you for pointing that out, totally missed that. Well that won't work with our parsing which splits on spaces of course :)
Hmm so it is any of the states that are 10 in length? |
There is no problem with other states(such as |
Hmm I'm wondering if this is an issue with only your version of ss:
Based on your kernel, I assume this is Ubuntu |
I tried it on different OS, It may really be related to my system version😅.
|
For the first and second lines, is the only difference being the kernel version? The ss version is the same? Are you in a position to update and verify that resolve the issue? I'm not opposed to carrying a fix in case this occurs again, but at the same time I certainly would like to avoid some extra logic for a bug that is already fixed. Thanks! |
Thank you so much. For some reasons, we are temporarily unable to upgrade the kernel version. At the same time, we made a simple fix on the current socketstat plugin and released a special Telegraf version to be compatible with this device. Of course, it would be great to be able to fix this issue, maybe I'm not alone. |
Glad to hear that works. Thanks for working this out with me! We chatted about this and would prefer not to maintain a fix for this given the old, soon to be out of standard support OS version. As such I am going to close this for now. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.29.1 Linux 4.15.0-136-generic #140-Ubuntu
Docker
No response
Steps to reproduce
./telegraf --config telegraf.conf --input-filter socketstat --test
CLOSE-WAIT1 0 192.xx.xxx.31:54994 192.xx.xx.31:22511 cubic wscale:7,7 rto:204 rtt:1.364/0.159 ato:40 mss:32768 pmtu:65535 rcvmss:536 advmss:65483 cwnd:10 bytes_acked:62173 bytes_received:373033 segs_out:10365 segs_in:5186 data_segs_out:5181 data_segs_in:5181 send 1921.9Mbps lastsnd:3340 lastrcv:3340 lastack:1272 pacing_rate 3842.0Mbps delivery_rate 7085.0Mbps app_limited busy:6824ms rcv_rtt:261404 rcv_space:65594 rcv_ssthresh:65495 minrtt:0.918
CLOSE-WAIT 1
but gotCLOSE-WAIT1
...
Expected behavior
socketstat,host=linux-31,local_addr=192.xx.xx.31,local_port=49884,node_id=cssp@mock-resource,proto=tcp,remote_addr=192.xxx.xx.44,remote_port=1521 bytes_acked=4792i,bytes_received=24542i,data_segs_in=70i,data_segs_out=70i,recv_q=0i,segs_in=73i,segs_out=77i,send_q=0i,state="CLOSE-WAIT" 1703839879000000000
Actual behavior
Got panic error.
Additional info
No response
The text was updated successfully, but these errors were encountered: