{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/719","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/719/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/719/events","html_url":"https://github.com/influxdata/telegraf/issues/719","id":134731027,"number":719,"title":"Netstat report incorrect values","user":{"login":"cdgraff","id":1087447,"avatar_url":"https://avatars.githubusercontent.com/u/1087447?v=3","gravatar_id":"","url":"https://api.github.com/users/cdgraff","html_url":"https://github.com/cdgraff","followers_url":"https://api.github.com/users/cdgraff/followers","following_url":"https://api.github.com/users/cdgraff/following{/other_user}","gists_url":"https://api.github.com/users/cdgraff/gists{/gist_id}","starred_url":"https://api.github.com/users/cdgraff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdgraff/subscriptions","organizations_url":"https://api.github.com/users/cdgraff/orgs","repos_url":"https://api.github.com/users/cdgraff/repos","events_url":"https://api.github.com/users/cdgraff/events{/privacy}","received_events_url":"https://api.github.com/users/cdgraff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T23:43:03Z","updated_at":"2016-02-18T23:46:39Z","closed_at":null,"body":"I has running netstat plugin in telegraf running as ROOT, to avoid privileges issue reported into other issue.\r\n\r\nBut only get ESTABLISHED metrics, and the counts is not correct.\r\n\r\nroot@ubuntu:~# telegraf -config /etc/telegraf/telegraf.conf -input-filter netstat -test\r\n* Plugin: netstat, Collection 1\r\n> 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\r\n\r\nroot@ubuntu:~# netstat -nap | grep ESTABLI | wc -l\r\n13840\r\n\r\nAnd 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.\r\n\r\nsome advice? or tests to run for help with debug?"},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/185982567","html_url":"https://github.com/influxdata/telegraf/issues/719#issuecomment-185982567","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/719","id":185982567,"user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T23:46:39Z","updated_at":"2016-02-18T23:46:39Z","body":"what is output of `lsof -i -a -n -P`?"}}