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

[memcached]: unexpected line in stats response: "STAT version 1.4.14 (Ubuntu)" #137

Closed
bbigras opened this issue Aug 25, 2015 · 4 comments
Closed
Labels
bug unexpected problem or unintended behavior

Comments

@bbigras
Copy link
Contributor

bbigras commented Aug 25, 2015

2015/08/25 11:24:45 Error in plugin [memcached]: unexpected line in stats response: "STAT version 1.4.14 (Ubuntu)"

telegraf v0.1.6
influxdb v0.9.3-rc2
memcached 1.4.14

@sparrc sparrc added the bug unexpected problem or unintended behavior label Aug 25, 2015
@sparrc
Copy link
Contributor

sparrc commented Aug 25, 2015

@BrunoQC

I haven't been able to reproduce this issue, can you please startup memcached in verbose mode memcached -vvv -d and send me the full output of your telegraf command like so:

vagrant@vagrant-ubuntu-trusty-64:~$ memcached -vvv -d
[...]
vagrant@vagrant-ubuntu-trusty-64:~$ /opt/telegraf/telegraf -config /tmp/tele.toml -filter memcached -test -debug
plugin [memcached] is enabled (filter options)
* Plugin: memcached
<30 new auto-negotiating client connection
30: going from conn_new_cmd to conn_waiting
30: going from conn_waiting to conn_read
30: going from conn_read to conn_parse_cmd
30: Client using the ascii protocol
<30 stats
30: going from conn_parse_cmd to conn_write
30: going from conn_write to conn_new_cmd
30: going from conn_new_cmd to conn_waiting
30: going from conn_waiting to conn_read
> [server="localhost:11211"] memcached_get_hits value=0
> [server="localhost:11211"] memcached_get_misses value=0
> [server="localhost:11211"] memcached_evictions value=0
> [server="localhost:11211"] memcached_limit_maxbytes value=67108864
> [server="localhost:11211"] memcached_bytes value=0
30: going from conn_read to conn_closing
<30 connection closed.

Also please send your memcached configuration, mine is just the standard:

# Read metrics from one or many memcached servers
[memcached]

# An array of address to gather stats about. Specify an ip on hostname
# with optional port. ie localhost, 10.0.0.1:11211, etc.
#
# If no servers are specified, then localhost is used as the host.
servers = ["localhost"]

@bbigras
Copy link
Contributor Author

bbigras commented Aug 25, 2015

<30 new auto-negotiating client connection
30: going from conn_new_cmd to conn_waiting
30: going from conn_waiting to conn_read
30: going from conn_read to conn_parse_cmd
30: Client using the ascii protocol
<30 stats
30: going from conn_parse_cmd to conn_write
30: going from conn_write to conn_new_cmd
30: going from conn_new_cmd to conn_waiting
30: going from conn_waiting to conn_read
30: going from conn_read to conn_closing
<30 connection closed.
bbigras@ubuntunew:~/.GOPATH/bin$ ./telegraf -config telegraf.toml -filter memcached -test -debug
plugin [memcached] is enabled (filter options)
* Plugin: memcached
2015/08/25 13:43:14 unexpected line in stats response: "STAT version 1.4.14 (Ubuntu)"
# Read metrics from one or many memcached servers
[memcached]

# An array of address to gather stats about. Specify an ip on hostname
# with optional port. ie localhost, 10.0.0.1:11211, etc.
#
# If no servers are specified, then localhost is used as the host.
servers = ["localhost"]

@bbigras
Copy link
Contributor Author

bbigras commented Aug 25, 2015

I think it's because STAT %s %s\r\n doesn't match STAT version 1.4.14 (Ubuntu) on
https://github.com/influxdb/telegraf/blob/bd85a36cb1e88450bea2792e989fa8074b5798a4/plugins/memcached/memcached.go#L104

errScan's value is newline in format does not match input

@bbigras
Copy link
Contributor Author

bbigras commented Aug 25, 2015

I'll submit a pull request soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants