renatomefi / php-fpm-healthcheck

A POSIX compliant sh script to healthcheck PHP fpm status, can be used only for pinging or check for specific metrics
MIT License
491 stars 55 forks source link

not working in debian linux with FPM socket communication #33

Closed JannikZed closed 4 years ago

JannikZed commented 4 years ago

Hi guys, We had to switch from alpine to debian linux (unfortunately). Since then, the healthcheck script is no longer running. I only receive the answer: Make sure fcgi is installed (i.e. apk add --no-cache fcgi). Aborting. I'm running the script with: FCGI_CONNECT=/var/run/socket/php5-fpm.sock php-fpm-healthcheck

Could we find out the reason for it?

renatomefi commented 4 years ago

Hey @JannikZed this error means the fcgi command line isn't installed, you might try this one: https://github.com/renatomefi/php-fpm-healthcheck/blob/v0.5.0/test/Dockerfile-buster#L6

JannikZed commented 4 years ago

perfect! Working now :) thank you for the fast answer!