Ad Widget

Collapse

Start Zabbix on Server Boot (Ubuntu 12.04)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trips2007
    Junior Member
    • Sep 2012
    • 17

    #1

    Start Zabbix on Server Boot (Ubuntu 12.04)

    I followed the documentation on installing Zabbix from source and it is working great, except that zabbix_server and zabbix_agentd do not automatically start when the system is booted.

    I found that the following entries were made for me

    /etc/services

    zabbix-agent 10050/tcp # Zabbix Agent
    zabbix-agent 10050/udp
    zabbix-trapper 10051/tcp # Zabbix Trapper
    zabbix-trapper 10051/udp

    When I issue the commands

    zabbix-server

    zabbix-agentd

    from a shell, both start just fine.

    What is the correct procedure to ensure that zabbix_server and zabbix_agentd automatically start when the Ubuntu server is booted?

    Also asked on ServerFault:

    http://serverfault.com/q/432433/18092
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I think this is what I used to use on Ubuntu. This should point you in the right direction...

    Copy the init.d scripts to the right spot:
    sudo cp misc/init.d/debian/zabbix-server /etc/init.d
    sudo cp misc/init.d/debian/zabbix-agent /etc/init.d


    Set the correct permissions and set Zabbix to start when the machine boots:
    sudo chmod 755 /etc/init.d/zabbix-server
    sudo update-rc.d zabbix-server defaults
    sudo chmod 755 /etc/init.d/zabbix-agent
    sudo update-rc.d zabbix-agent defaults

    Comment

    Working...