温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

zabbix-server服务启动失败处理过程是怎么样的

发布时间:2021-11-06 15:47:52 来源:亿速云 阅读:5742 作者:柒染 栏目:建站服务器

这篇文章给大家介绍zabbix-server服务启动失败处理过程是怎么样的,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

在CentOS7x64 7.3.1611上测试部署Zabbix 3.0.9,到启动zabbix-server服务时报错:

6月 19 15:52:13 CentOS7x64 systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.

6月 19 15:52:13 CentOS7x64 systemd[1]: zabbix-server.service: main process exited, code=exited, status=1/FAILURE

6月 19 15:52:24 CentOS7x64 systemd[1]: zabbix-server.service: control process exited, code=exited status=1

6月 19 15:52:24 CentOS7x64 systemd[1]: Unit zabbix-server.service entered failed state.

6月 19 15:52:24 CentOS7x64 systemd[1]: zabbix-server.service failed.

[root@CentOS7x64 ~]# getenforce

Disabled

[root@CentOS7x64 ~]#


这次执行启动命令没有报错提示,执行systemctl status zabbix-server.service和journalctl -xe也没有明显的错误原因提示。

[root@CentOS7x64 ~]# cd /var/log

[root@CentOS7x64 log]# ls

anaconda       cups                httpd              pluto             speech-dispatcher        VBoxGuestAdditions-uninstall.log  Xorg.9.log

audit          dmesg               lastlog            pm-powersave.log  spooler                  vmware-vmusr.log                  Xorg.9.log.old

boot.log       dmesg.old           libvirt            ppp               spooler-20170417         wpa_supplicant.log                yum.log

btmp           firewalld           maillog            qemu-ga           tallylog                 wtmp                              yum.log-20170417

btmp-20170417  gdm                 maillog-20170417   sa                tuned                    Xorg.0.log                        zabbix

chrony         glusterfs           messages           samba             vboxadd-install.log      Xorg.0.log.old

cron           grubby              messages-20170417  secure            vboxadd-install-x11.log  Xorg.1.log

cron-20170417  grubby_prune_debug  mysqld.log         secure-20170417   VBoxGuestAdditions.log   Xorg.1.log.old

[root@CentOS7x64 log]# cd  zabbix

[root@CentOS7x64 zabbix]# ls

zabbix_server.log

[root@CentOS7x64 zabbix]# ll

总用量 384

-rw-rw-r--. 1 zabbix zabbix 368295 6  19 16:04 zabbix_server.log

[root@CentOS7x64 zabbix]# less zabbix_server.log

[root@CentOS7x64 zabbix]# tail -50 zabbix_server.log

  4520:20170619:160624.303 ****** Enabled features ******

  4520:20170619:160624.303 SNMP monitoring:           YES

  4520:20170619:160624.303 IPMI monitoring:           YES

  4520:20170619:160624.303 Web monitoring:            YES

  4520:20170619:160624.303 VMware monitoring:         YES

  4520:20170619:160624.303 SMTP authentication:       YES

  4520:20170619:160624.303 Jabber notifications:      YES

  4520:20170619:160624.303 Ez Texting notifications:  YES

  4520:20170619:160624.303 ODBC:                      YES

  4520:20170619:160624.303 SSH2 support:              YES

  4520:20170619:160624.303 IPv6 support:              YES

  4520:20170619:160624.303 TLS support:               YES

  4520:20170619:160624.303 ******************************

  4520:20170619:160624.303 using configuration file: /etc/zabbix/zabbix_server.conf

  4520:20170619:160624.306 [Z3005] query failed: [1146] Table 'zabbix.users' doesn't exist [select userid from users limit 1]

  4520:20170619:160624.306 cannot use database "zabbix": database is not a Zabbix database

  4531:20170619:160634.563 Starting Zabbix Server. Zabbix 3.0.9 (revision 67444).

  4531:20170619:160634.563 ****** Enabled features ******

  4531:20170619:160634.563 SNMP monitoring:           YES

  4531:20170619:160634.563 IPMI monitoring:           YES

  4531:20170619:160634.563 Web monitoring:            YES

  4531:20170619:160634.563 VMware monitoring:         YES

  4531:20170619:160634.563 SMTP authentication:       YES

  4531:20170619:160634.563 Jabber notifications:      YES

  4531:20170619:160634.563 Ez Texting notifications:  YES

  4531:20170619:160634.563 ODBC:                      YES

  4531:20170619:160634.563 SSH2 support:              YES

  4531:20170619:160634.563 IPv6 support:              YES

  4531:20170619:160634.563 TLS support:               YES

  4531:20170619:160634.563 ******************************

  4531:20170619:160634.563 using configuration file: /etc/zabbix/zabbix_server.conf

  4531:20170619:160634.567 [Z3005] query failed: [1146] Table 'zabbix.users' doesn't exist [select userid from users limit 1]

  4531:20170619:160634.567 cannot use database "zabbix": database is not a Zabbix database

  4536:20170619:160644.820 Starting Zabbix Server. Zabbix 3.0.9 (revision 67444).

  4536:20170619:160644.820 ****** Enabled features ******

  4536:20170619:160644.820 SNMP monitoring:           YES

  4536:20170619:160644.820 IPMI monitoring:           YES

  4536:20170619:160644.820 Web monitoring:            YES

  4536:20170619:160644.820 VMware monitoring:         YES

  4536:20170619:160644.820 SMTP authentication:       YES

  4536:20170619:160644.820 Jabber notifications:      YES

  4536:20170619:160644.820 Ez Texting notifications:  YES

  4536:20170619:160644.820 ODBC:                      YES

  4536:20170619:160644.820 SSH2 support:              YES

  4536:20170619:160644.820 IPv6 support:              YES

  4536:20170619:160644.820 TLS support:               YES

  4536:20170619:160644.820 ******************************

  4536:20170619:160644.820 using configuration file: /etc/zabbix/zabbix_server.conf

  4536:20170619:160644.826 [Z3005] query failed: [1146] Table 'zabbix.users' doesn't exist [select userid from users limit 1]

  4536:20170619:160644.826 cannot use database "zabbix": database is not a Zabbix database

[root@CentOS7x64 zabbix]#

看日志应该是Zabbix数据库配置不完整,zabbix.users表没有创建,即Zabbix数据库配置时建库建表等动作没有按照要求正常完成。

补充了相关操作后再试,zabbix-server服务启动正常了:
zabbix-server服务启动失败处理过程是怎么样的
Zabbix管理页面能正常登陆并打开:
zabbix-server服务启动失败处理过程是怎么样的

关于zabbix-server服务启动失败处理过程是怎么样的就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI