Ad Widget

Collapse

Zabbix not automatically start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sty
    Junior Member
    • Aug 2016
    • 4

    #1

    Zabbix not automatically start

    Hello,

    After installing zabbix 3 from the package downloaded from the official site, the zabbix_server Service (same problem for the agent) does not start automatically.

    If I manually start (start zabbix_server service): it work !

    The /etc/init.d/zabbix-server script is present and I tried to reinstall (update-rc.d zabbix-server defaults)

    Nevertheless the Zabbix server still not start on boot !!

    Thank you for help me.
  • Sandro
    Junior Member
    • Aug 2016
    • 1

    #2
    Hello sty,

    let's try it step by step.
    1) Log in as root and delete:
    PHP Code:
    rm -/etc/init.d/zabbix-agent
    rm 
    -/etc/init.d/zabbix-server 
    2) Copy the scripts to your /etc/init.d/ dir:
    Care for your version (example 3.0.4) and your os. Debian works for debian and ubuntu!
    PHP Code:
    cp /usr/src/zabbix-3.0.4/misc/init.d/debian/zabbix-* /etc/init.d
    3) Add both to your system start:
    PHP Code:
    update-rc.d zabbix-agent defaults 99
    update
    -rc.d zabbix-server start 99 2 3 4 5 stop 5 0 1 6 
    4) Try to start/stop the server with:
    PHP Code:
    service zabbix-server stop
    service zabbix
    -server start 
    5) Try a reboot and check the processes:
    PHP Code:
    ps aux grep zabbix 
    Good luck

    Source: https://znil.net (german site)

    Comment

    • sty
      Junior Member
      • Aug 2016
      • 4

      #3
      Problem solved

      Hello,

      Thank you for your help, but the method does not work.

      I have found the solution.
      Debian Jessie now uses systemd to start its processes.
      You simply execute the following commands to the server and Zabbix agent is started automatically :

      Code:
      systemctl enable zabbix-server
      systemctl enable zabbix-agent
      This can be useful to others.
      Thanks again

      Comment

      • micster
        Junior Member
        • Nov 2016
        • 1

        #4
        Thank you so much! That was the solution for me also, running Ubuntu 16.04
        Originally posted by sty
        Hello,

        Thank you for your help, but the method does not work.

        I have found the solution.
        Debian Jessie now uses systemd to start its processes.
        You simply execute the following commands to the server and Zabbix agent is started automatically :

        Code:
        systemctl enable zabbix-server
        systemctl enable zabbix-agent
        This can be useful to others.
        Thanks again

        Comment


        • mauriciopeclatlopes
          mauriciopeclatlopes commented
          Editing a comment
          Thank you Micster. That was the solution for me also, running Ubuntu 16.04
      Working...