Skip to content
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

Netstat report incorrect values #719

Closed
cdgraff opened this issue Feb 18, 2016 · 2 comments
Closed

Netstat report incorrect values #719

cdgraff opened this issue Feb 18, 2016 · 2 comments

Comments

@cdgraff
Copy link

cdgraff commented Feb 18, 2016

I has running netstat plugin in telegraf running as ROOT, to avoid privileges issue reported into other issue.

But only get ESTABLISHED metrics, and the counts is not correct.

root@ubuntu:~# telegraf -config /etc/telegraf/telegraf.conf -input-filter netstat -test

  • Plugin: netstat, Collection 1

    netstat tcp_close=0i,tcp_close_wait=0i,tcp_closing=0i,tcp_established=9834i,tcp_fin_wait1=0i,tcp_fin_wait2=0i,tcp_last_ack=0i,tcp_listen=8i,tcp_none=0i,tcp_syn_recv=0i,tcp_syn_sent=0i,tcp_time_wait=0i,udp_socket=1i 1455827518629788254

root@ubuntu:~# netstat -nap | grep ESTABLI | wc -l
13840

And is not reporting any other value, at this moment i has +20k time_wait connections and can see that plugin don't report any value there.

some advice? or tests to run for help with debug?

@sparrc
Copy link
Contributor

sparrc commented Feb 18, 2016

what is output of lsof -i -a -n -P?

@sparrc
Copy link
Contributor

sparrc commented Feb 18, 2016

dupe of #656, please paste output in other issue

@sparrc sparrc closed this as completed Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants