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

Unable to fetch stats from haproxy after 3 attempts #28

Open
MrMoronIV opened this issue Apr 25, 2018 · 2 comments
Open

Unable to fetch stats from haproxy after 3 attempts #28

MrMoronIV opened this issue Apr 25, 2018 · 2 comments

Comments

@MrMoronIV
Copy link

Command: metrics-haproxy.rb -c /var/lib/haproxy/stats

Even when I provide username and password the result is still:
Unable to fetch stats from haproxy after 3 attempts

When I run the metrics command on the command line it gives me stats perfectly fine, the socket is chmod 755.

Any suggestions? Literally all sensu checks work on this server except this one.

@Pshellvon
Copy link

In my case:
metrics-haproxy.rb -c /var/run/haproxy/admin.sock -a
working like a charm!

@phumpal
Copy link

phumpal commented May 27, 2020

@MrMoronIV does the user executing the metrics check have permission to introspect the haproxy socket?

My workaround was to use rvmsudo. e.g.

rvmsudo metrics-haproxy.rb -c /run/haproxy/admin.sock -a

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

3 participants