rvalitov / zabbix-php-fpm

PHP-FPM status monitoring template for Zabbix with auto discovery (LLD), support for multiple pools and ISPConfig
GNU General Public License v3.0
69 stars 20 forks source link

ispconfig + ubuntu 22.04 doesn't work #64

Open andreabel1981 opened 1 year ago

andreabel1981 commented 1 year ago

this is the only command I can run on the isp server that I have a response, I don't understand if the script doesn't work with this version or something is missing to install

root@server6:/etc/zabbix# /etc/zabbix/zabbix_php_fpm_discovery.sh POOL_PATH debug Debug mode enabled Current user is root Status path to be used: /php-fpm-status Local directory is /etc/zabbix Helper script /etc/zabbix/zabbix_php_fpm_status.sh is reachable Reading cache file /etc/zabbix/php_fpm.cache... Started analysis of pool www, PID 904 Checking process: php-fpm8. 904 www-data 4u unix 0xffff94aa6ad6d540 0t0 25689 type=STREAM Error: specified socket type=STREAM is not valid Checking process: php-fpm8. 904 www-data 10u unix 0xffff94aa6f170440 0t0 28005 /run/php/php8.1-fpm.sock type=STREAM Found socket /run/php/php8.1-fpm.sock Failed to get status for pool www, socket /run/php/php8.1-fpm.sock, status path /php-fpm-status Status script returned: Utility 'cgi-fcgi' not found. Please, install it first. Error: socket /run/php/php8.1-fpm.sock didn't return valid data Error: failed to discover information for pool www Processing pools from old cache... Saving new cache file /etc/zabbix/php_fpm.cache... Resulting JSON data for Zabbix: {"data":[]}root@server6:/etc/zabbix# ^C

welcome[bot] commented 1 year ago

Hello welcome GIF Thank you so much for opening your first issue here! :cherry_blossom: :white_check_mark: I hope you have kindly checked any other opened issues to make sure that it's not a duplicate :pray: :white_check_mark: And you have read the Wiki of this project that contains a full documentation, specifically the Installation instructions and Troubleshooting guide :innocent: :information_source: You may add any additional information by editing your original post or by posting additional comments below. :information_source: We need some time to read your issue and verify it, so please, be patient :innocent: :information_source: Any questions or comments regarding your issue will be posted here below that may require your response. So, please, don't miss the Github notifications about new updates on this topic :wink:

We will kindly investigate the information you provided and hopefully return to you as soon as possible! :blush:

rvalitov commented 1 year ago

According to the log the cgi-fcgi utility is not installed. Please install it. Please check the installation guide here https://github.com/rvalitov/zabbix-php-fpm/wiki/Installation#11-install-prerequisites For Ubuntu it's the package libfcgi-bin

andreabel1981 commented 1 year ago

root@server4:~# apt-get -y install libfcgi-bin Reading package lists... Done Building dependency tree Reading state information... Done libfcgi-bin is already the newest version (2.4.0-10build1). The following package was automatically installed and is no longer required: squashfs-tools Use 'apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.

the package is installed, I have Ubuntu 20.04

rvalitov commented 1 year ago

Last time I made a test with Ubuntu 20, not 22. I will check again anyway. Thank you for reporting!

andreabel1981 commented 1 year ago

the version is 20.04 not 22