运维日志

记一次zabbix服务器重启导致的zabbix web界面503提示不可用

近期因某些原因,导致一台平台类服务器重启了,其中上面有个zabbix的监控服务。服务器正常启动之后,zabbix服务正常起来,但是访问web界面时,apache报503故障

 

去查看zabbix服务端的日志没发现异常,怀疑是某个服务没有没有起来,导致访问不可用

这时查看apache的错误日志,发现了一下异常:

[Fri Feb 19 16:50:12.822075 2021] [proxy:error] [pid 27451] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock (*) failed
[Fri Feb 19 16:50:12.822131 2021] [proxy_fcgi:error] [pid 27451] [client 127.0.0.1:41278] AH01079: failed to make connection to backend: httpd-UDS
[Fri Feb 19 16:50:14.631067 2021] [proxy:error] [pid 27452] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock (*) failed
[Fri Feb 19 16:50:14.631118 2021] [proxy_fcgi:error] [pid 27452] [client 127.0.0.1:41326] AH01079: failed to make connection to backend: httpd-UDS
[Fri Feb 19 16:50:15.936591 2021] [proxy:error] [pid 27453] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock (*) failed
[Fri Feb 19 16:50:15.936643 2021] [proxy_fcgi:error] [pid 27453] [client 127.0.0.1:41356] AH01079: failed to make connection to backend: httpd-UDS

原因:

有个服务rh-php72-php-fpm没有启动,导致apache连接到后端的fccgi解析器的时候,连接不上,无法解析php

解决办法:

重新启动该服务即可

systemctl restart rh-php72-php-fpm

这时候,重新打开,就能看到界面了

 

评论 抢沙发

  • QQ号
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活