Monitor PHP-FPM via socket permission problem #12312
-
Hello, I have a problem with PHP-FPM monitoring via socket. The netdata agent installation is the default, while debugging I get these messages:
The owner of the socket is the website user, for each site I have a different php-fpm pool. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, @bessone. I asked a few Netdata users to help us with your issue. I know they used the php-fpm collector with a socket connection. |
Beta Was this translation helpful? Give feedback.
-
@ilyam8 Sure! Either one of these should work,: |
Beta Was this translation helpful? Give feedback.
@ilyam8 Sure!
Make sure that the netdata user can read the socket, either with correct permissions or add them to the www-data group.
Either one of these should work,:
Add netdata to www-data group (this is what i used):
usermod -a -G www-data netdata
Or, in you PHP FPM pool config add:
listen.mode = 0666