-
Notifications
You must be signed in to change notification settings - Fork 46
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
Getting permission denied when using unix socket #38
Comments
@Jacketbg What user is php-fpm-exporter is running as ? If you run it with |
Same issue here even when running as root, I know the socket is OK, because PHP is running from the same socket. root@:~# ls -al /var/run/admin2.sock |
Try this: ./php-fpm_exporter_2.0.3_linux_amd64 get --phpfpm.scrape-uri "unix:///var/run/admin2.sock;/status" |
Hi,
I'm starting the exporter like this:
/usr/bin/php-fpm-exporter --addr :8080 --fastcgi unix://var/run/php5-fpm.sock
The socket address is valid and nginx is connecting to it. There are no permission issues for sure and I'm even starting the exporter as root and getting the same error. Here's the error:
I tried chmodding the socket to 777 just to rule out real permission issues.
The status page is configured at /status and I can open it via nginx.
I can connect via tcp, but the pool I want to monitor uses unix socket and I don’t want to change it.
Can you please give me some pointers? Thanks!
The text was updated successfully, but these errors were encountered: