-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
phpfpm plugin with unix socket fails #499
Comments
In fact, i just discovered my problem - the path to the sock should be prefixed by localhost:(so localhost:/var/run/php5-fpm.sock instead of just /var/run/php5-fpm.sock). That isn't very clear in the documentation of the plugin, so i propose that you edit it to mention that little detail. |
thanks for the detailed report 👍 |
Will submit PRs for this. |
thanks @kureikain |
For me it is still not working. My config:
|
I had the same issue ; it was a little bit improved when I add a real bash to telegraf user (instead of From #502, I added:
If you look at the code, it's
But I still have:
Whereas I defined a socket. So arguments are not well parsed ? What should be perms on socket? Seems 0666 is not enough? |
Hello, everybody.
Awesome work on telegraf, it's really a pleasure to use it, and i've had no issues with it whatsoever until recently.
I setup a webserver with nginx and php5-fpm, with communcation between them passing via the unix socket at /var/run/php5-fpm.sock.
Whenever i run telegraf, with -test and -debug, i get a rather long stacktrace, but with nothing that actually helps me debug:
My telegraf config is regular, as per its doc:
The sock is present, and is with 666 rights, so telegraf should be able to access it.
The script that i found here works perfectly, so i suppose i am missing something between Telegraf and my sock rather than a php-fpm config issue.
What can I do so that Telegraf successfully connects to my sock? Thanks in advance to anybody who responds to my plead for help :)
PS: I tried enabling the pm.status variable in my php-fpm pool config, to /fpmstatus, but i am running a WordPress blog with a lot of redirections(i18n, cache, cdn) and my requests get redirected to the website and fail with a 404, so using the web to gather stats by Telegraf isn't an option, that's why i am trying to do it via the sock.
The text was updated successfully, but these errors were encountered: