Ad Widget

Collapse

Disabling Zabbix PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bilal.habib
    Junior Member
    • Apr 2020
    • 22

    #1

    Disabling Zabbix PHP?

    Hi,

    I've been using a custom nginx config for awhile to access Zabbix frontend.

    This has stopped working recently. I found errors in the nginx logs


    HTML Code:
    2021/12/07 15:27:46 [error] 853#853: *24 connect() to unix:/run/php/php7.2-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.30.0.24, server: www.host.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "www.host.com"
    Checking from php logs I also see the following:

    HTML Code:
    ● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
    
    Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor preset: enabled)
    
    Active: failed (Result: exit-code) since Tue 2021-12-07 15:27:51 GMT; 15min ago
    
    Docs: manhp-fpm7.2(8)
    
    Process: 3419 ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf (code=exited, status=78)
    
    Main PID: 3419 (code=exited, status=78)
    
    
    
    
    Dec 07 15:27:51 ip-10-10-1-170 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
    
    Dec 07 15:27:51 ip-10-10-1-170 php-fpm7.2[3419]: [07-Dec-2021 15:27:51] ERROR: An another FPM instance seems to already listen on /var/run/php/zabbix.sock
    
    Dec 07 15:27:51 ip-10-10-1-170 php-fpm7.2[3419]: [07-Dec-2021 15:27:51] ERROR: FPM initialization failed
    
    Dec 07 15:27:51 ip-10-10-1-170 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
    
    Dec 07 15:27:51 ip-10-10-1-170 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
    
    Dec 07 15:27:51 ip-10-10-1-170 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
    Is there a way to disable /var/run/php/zabbix.sock and that instance?

    Thanks
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Look in /etc/php-fpm.d/ at what PHP-FPM worker pools you have configured. It's fine to have multiple pools, if your workload benefits from it, but those pools must use different sockets. Seems like you might have multiple pools trying to use the same socket.

    Comment

    • bilal.habib
      Junior Member
      • Apr 2020
      • 22

      #3
      Originally posted by tim.mooney
      Look in /etc/php-fpm.d/ at what PHP-FPM worker pools you have configured. It's fine to have multiple pools, if your workload benefits from it, but those pools must use different sockets. Seems like you might have multiple pools trying to use the same socket.
      turns out /usr/share/zabbix had been emptied, no clue as to why. managed to get things working. went the down rabbit hole of trying different php versions to now avail

      Comment

      Working...