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

Removes extraneous "\n" at the end of packets #24

Open
wants to merge 1 commit into
base: refactored
Choose a base branch
from

Conversation

fmeynadier
Copy link

This fixes warnings like this /var/log/carbon/listener.log :

17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:30 :: invalid line () received from client 127.0.0.1:47869, ignoring

Empty string between parenthesis suggests that an empty line is sent to
graphite.

Indeed, inspection of lo interface with tcpdump/wireshark shows packets ending with "0a0a".

The suggested fix is not very elegant but it does the job, at least on my
system (centos 7.2, shinken 2.4.3 and graphite-web 0.9.15 from EPEL
repo, and mod-graphite as downloaded from shinken.io, which I found to
be identical to the current module in "refactored" branch).

This fixes warnings like this /var/log/carbon/listener.log :

17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:29 :: invalid line () received from client 127.0.0.1:47869, ignoring
17/07/2016 03:44:30 :: invalid line () received from client 127.0.0.1:47869, ignoring

Empty string between parenthesis suggests that an empty line is sent to
graphite.

Indeed, inspection of lo interface with tcpdump/wireshark shows packets ending with "0a0a".

The suggested fix is not very elegant but it does the job, at least on my
system (centos 7.2, shinken 2.4.3 and graphite-web 0.9.15 from EPEL
repo, and mod-graphite as downloaded from shinken.io, which I found to
be identical to the current module in "refactored" branch).
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

Successfully merging this pull request may close these issues.

1 participant