zabbix3.4提示zabbix server is not running

矫情吗;* 2022-04-24 10:52 556阅读 0赞

一、故障提示watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RsYWRhZ2lv_size_16_color_FFFFFF_t_70

二、解决步骤

1、先关闭Selinux

  1. [root@localhost ~]# cat /etc/selinux/config
  2. # This file controls the state of SELinux on the system.
  3. # SELINUX= can take one of these three values:
  4. # enforcing - SELinux security policy is enforced.
  5. # permissive - SELinux prints warnings instead of enforcing.
  6. # disabled - No SELinux policy is loaded.
  7. SELINUX=disabled
  8. # SELINUXTYPE= can take one of three values:
  9. # targeted - Targeted processes are protected,
  10. # minimum - Modification of targeted policy. Only selected processes are protected.
  11. # mls - Multi Level Security protection.
  12. SELINUXTYPE=targeted
  13. [root@localhost ~]# setenforce 0
  14. setenforce: SELinux is disabled

2、查看zabbix server日志错误提示:

[file:dbconfig.c,line:90] zbx_mem_malloc(): out of memory (requested 256 bytes)
[file:dbconfig.c,line:90] zbx_mem_malloc(): please increase CacheSize configuration parameter

  1. [root@localhost ~]# cat /var/log/zabbix/zabbix_server.log
  2. 9852:20190422:234414.101 ******************************
  3. 9852:20190422:234414.102 using configuration file: /etc/zabbix/zabbix_server.conf
  4. 9852:20190422:234414.125 current database version (mandatory/optional): 03040000/03040007
  5. 9852:20190422:234414.126 required mandatory version: 03040000
  6. 9852:20190422:234414.814 __mem_malloc: skipped 0 asked 256 skip_min 4294967295 skip_max 0
  7. 9852:20190422:234414.814 [file:dbconfig.c,line:90] zbx_mem_malloc(): out of memory (requested 256 bytes)
  8. 9852:20190422:234414.814 [file:dbconfig.c,line:90] zbx_mem_malloc(): please increase CacheSize configuration parameter
  9. 9852:20190422:234414.814 === memory statistics for configuration cache ===
  10. 9852:20190422:234414.815 free chunks of size 24 bytes: 33
  11. 9852:20190422:234414.815 free chunks of size 32 bytes: 1
  12. 9852:20190422:234414.815 free chunks of size 40 bytes: 3
  13. 9852:20190422:234414.815 free chunks of size 176 bytes: 1
  14. 9852:20190422:234414.815 min chunk size: 24 bytes
  15. 9852:20190422:234414.815 max chunk size: 176 bytes
  16. 9852:20190422:234414.816 memory of total size 7129936 bytes fragmented into 60114 chunks
  17. 9852:20190422:234414.816 of those, 1120 bytes are in 38 free chunks
  18. 9852:20190422:234414.816 of those, 6167008 bytes are in 60076 used chunks
  19. 9852:20190422:234414.816 ================================
  20. 9852:20190422:234414.816 === Backtrace: ===
  21. 9852:20190422:234414.817 11: /usr/sbin/zabbix_server(zbx_backtrace+0x35) [0x55601a398889]
  22. 9852:20190422:234414.817 10: /usr/sbin/zabbix_server(__zbx_mem_malloc+0x163) [0x55601a3947a8]
  23. 9852:20190422:234414.818 9: /usr/sbin/zabbix_server(+0xb9e3d) [0x55601a368e3d]
  24. 9852:20190422:234414.818 8: /usr/sbin/zabbix_server(+0xf4a69) [0x55601a3a3a69]
  25. 9852:20190422:234414.818 7: /usr/sbin/zabbix_server(zbx_vector_ptr_append+0x1c) [0x55601a3a3bfe]
  26. 9852:20190422:234414.818 6: /usr/sbin/zabbix_server(+0xc309b) [0x55601a37209b]
  27. 9852:20190422:234414.818 5: /usr/sbin/zabbix_server(DCsync_configuration+0x7b5) [0x55601a372ff8]
  28. 9852:20190422:234414.818 4: /usr/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x5e8) [0x55601a2ef575]
  29. 9852:20190422:234414.818 3: /usr/sbin/zabbix_server(daemon_start+0x325) [0x55601a3980d6]
  30. 9852:20190422:234414.819 2: /usr/sbin/zabbix_server(main+0x312) [0x55601a2eef8b]
  31. 9852:20190422:234414.819 1: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f28190dd3d5]
  32. 9852:20190422:234414.819 0: /usr/sbin/zabbix_server(+0x346a9) [0x55601a2e36a9]
  33. 9888:20190422:234425.110 Starting Zabbix Server. Zabbix 3.4.15 (revision 86739).
  34. 9888:20190422:234425.111 ****** Enabled features ******
  35. 9888:20190422:234425.111 SNMP monitoring: YES
  36. 9888:20190422:234425.111 IPMI monitoring: YES
  37. 9888:20190422:234425.111 Web monitoring: YES
  38. 9888:20190422:234425.111 VMware monitoring: YES
  39. 9888:20190422:234425.111 SMTP authentication: YES
  40. 9888:20190422:234425.111 Jabber notifications: YES
  41. 9888:20190422:234425.112 Ez Texting notifications: YES
  42. 9888:20190422:234425.112 ODBC: YES
  43. 9888:20190422:234425.112 SSH2 support: YES
  44. 9888:20190422:234425.112 IPv6 support: YES
  45. 9888:20190422:234425.112 TLS support: YES
  46. 9888:20190422:234425.112 ******************************

3、zabbix服务无法启动

  1. [root@localhost ~]# systemctl status zabbix-server
  2. zabbix-server.service - Zabbix Server
  3. Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
  4. Active: activating (auto-restart) (Result: resources) since Mon 2019-04-22 23:50:53 EDT; 8s ago
  5. Process: 10237 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
  6. Process: 10415 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
  7. Main PID: 10232 (code=exited, status=1/FAILURE)
  8. Apr 22 23:50:53 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
  9. Apr 22 23:50:53 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
  10. Apr 22 23:50:53 localhost.localdomain systemd[1]: zabbix-server.service failed.

三、根据提示增加CacheSize数值

  1. [root@localhost ~]# vim /etc/zabbix/zabbix_server.conf

根据个人机器配置,适当调整以下的数值:

CacheSize=2048M

HistoryCacheSize=1024M

HistoryIndexCacheSIze=512M

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RsYWRhZ2lv_size_16_color_FFFFFF_t_70 1

四、重启服务,如果重启服务错误,可以重启机器。(确保10051端口是监听状态)

  1. [root@localhost ~]# systemctl restart zabbix-server

五、查看

1、Zabbix服务器端运行中:是

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RsYWRhZ2lv_size_16_color_FFFFFF_t_70 2

2、查看空间空余

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RsYWRhZ2lv_size_16_color_FFFFFF_t_70 3

发表评论

表情:
评论列表 (有 0 条评论,556人围观)

还没有评论,来说两句吧...

相关阅读