Help Request - php fpm Collector "Something Went Wrong"

Hi I’m hoping someone could help,

I’m currently in the process of setting up a PHP-FPM on two nodes, but I’m getting the following error when trying to add the intergration.

{
    "errorMsgKey": "AgentError",
    "errorMessage": "Module phpfpm configuration schema not found.",
    "errorCode": "EmXjjnbmr0-1102072370"
}

I went through the setup guide and uncommented the pm.status (and I also have custom config that may help debug pm.status_listen = 127.0.0.1:9001)

I then added the new config on both server using

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/phpfpm.conf

which results in

jobs:
  - name: 'app_server_2' #unique name per server
    socket: '/run/php/php8.1-fpm.sock'

and when I run the debug log I see data points been selected, and to the untrained eye it looks like it’s work however I do get this one error.

ERR phpfpm/phpfpm.go:91 error on decoding response from socket '/run/php/php8.1-fpm.sock': invalid character 'I' looking for beginning of value collector=phpfpm job=app_server_1

but as you can see from the config above I don’t have a ‘I’ character?

Hope some is able to help, and thank you in advance.

(P.s sorry for the accidental post ealier I hit shift+enter out of muscle memory and didn’t realise it would post :sweat_smile: )

Hey, @DR-DinoMight.

ERR phpfpm/phpfpm.go:91 error on decoding response from socket ‘/run/php/php8.1-fpm.sock’: invalid character ‘I’ looking for beginning of value collector=phpfpm job=app_server_1

This error is not about “phpfpm.conf” but the response from the PHP-FPM instance. This is the function that does the query:

  1. create connection
  2. set timeout
  3. query
  4. read response (bytes)
  5. JSON decode response

The 5th step fails, the response is not JSON data.

I added debug logging of the response on the decoding error in 17870. It will be available in tomorrow’s nightly release. You will be able to see the response body in the debug mode. I hope it will help us to understand the problem.

Fixed in go.d phpfpm add config schema by ilyam8 · Pull Request #17872 · netdata/netdata · GitHub

Oh thank you for the quick update!

I’ll look at updating shortly, the debug should surely help me find out the reason as to why what the server is sending instead of the expected data.