Ad Widget

Collapse

zabbix-server not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    zabbix-server not running

    Hi,

    I have fresh install the zabbix server and database on the same server.

    However, the service is not able to start.

    Below is the error message

    [zabbix@zabsrv system]$ sudo systemctl start zabbix-server.service
    Job for zabbix-server.service failed because the control process exited with error code. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

    [zabbix@zabsrv system]$ sudo systemctl start zabbix-server.service
    Job for zabbix-server.service failed because the control process exited with error code. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
    [zabbix@zabsrv system]$ systemctl status zabbix-server.service
    รข zabbix-server.service - Zabbix Server
    Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Fri 2017-03-17 16:55:26 +08; 4s ago
    Process: 5425 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=1/FAILURE)

    Mar 17 16:55:26 zabsrv.sing.com systemd[1]: Failed to start Zabbix Server.
    Mar 17 16:55:26 zabsrv.sing.com systemd[1]: Unit zabbix-server.service entered failed state.
    Mar 17 16:55:26 zabsrv.sing.com systemd[1]: zabbix-server.service failed.


    [zabbix@zabsrv system]$ journalctl -xe

    Unit zabbix-server.service has begun starting up.
    Mar 17 16:58:41 drt-zabsrv.sing.seagate.com zabbix_server[5523]: zabbix_server [5523]: invalid entry "This is a configuration file for Zabbix server daemon" (not following "para
    Mar 17 16:58:41 drt-zabsrv.sing.seagate.com systemd[1]: zabbix-server.service: control process exited, code=exited status=1
    Mar 17 16:58:41 drt-zabsrv.sing.seagate.com systemd[1]: Failed to start Zabbix Server.
    -- Subject: Unit zabbix-server.service has failed
    -- Defined-By: systemd
    -- Unit zabbix-server.service has failed.
    --
    -- The result is failed.


    Based on https://www.zabbix.com/forum/showthr...service+failed, seems like the pid file got wrong.

    So i have done steps below :

    1. check mysql socket in /etc/zabbix/zabbix-server.conf and have it modified from /tmp/sock to /var/lib/mysql/mysql.sock

    2. Tried to chekc on the zabbix-server.pid on zabbix-server.conf and have modified it from /var/run/zabbix/zabbix_server.pid to /run/zabbix/zabbix_server.pid which is the same with


    Error message from /var/log/zabbix/zabbix_server.log

    17438:20170317:153249.957 Starting Zabbix Server. Zabbix 3.0.8 (revision 65976).
    17438:20170317:153249.957 ****** Enabled features ******
    17438:20170317:153249.957 SNMP monitoring: YES
    17438:20170317:153249.957 IPMI monitoring: YES
    17438:20170317:153249.957 Web monitoring: YES
    17438:20170317:153249.957 VMware monitoring: YES
    17438:20170317:153249.958 SMTP authentication: YES
    17438:20170317:153249.958 Jabber notifications: YES
    17438:20170317:153249.958 Ez Texting notifications: YES
    17438:20170317:153249.958 ODBC: YES
    17438:20170317:153249.958 SSH2 support: YES
    17438:20170317:153249.958 IPv6 support: YES
    17438:20170317:153249.958 TLS support: YES
    17438:20170317:153249.958 ******************************
    17438:20170317:153249.958 using configuration file: /etc/zabbix/zabbix_server.conf
    17438:20170317:153249.958 cannot set resource limit: [13] Permission denied
    17438:20170317:153249.958 cannot disable core dump, exiting...


    Any idea what cause the error ?

    Thank you very much in advance
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please set the policy of SELinux.

    ex.
    ZBX-10542
    zabbix-server can not start on rhel 7.1

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      Thanks. It works now.

      Comment

      • Xyue
        Member
        • Jan 2016
        • 93

        #4
        Hi Atsushi,

        Can you give me some suggestion on the performance tuning for zabbix server ? I started to add host after the service is running. Soon, the server crash/not working due to lack of cache.

        [file:strpool.c,line:53] zbx_mem_malloc(): out of memory (requested 50 bytes)
        [file:strpool.c,line:53] zbx_mem_malloc(): please increase CacheSize configuration parameter

        So, I modified the CacheSize from default to 1G and it was working as of now.

        Would like to check with you what else i need to notice/modified on the server performance issue to prevent this things happen again?

        Thank you very much.
        Xyue

        Comment

        Working...