Ad Widget

Collapse

how to start zabbix_server and zabbix_agentd on boot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beaujoire
    Junior Member
    • Feb 2010
    • 14

    #1

    how to start zabbix_server and zabbix_agentd on boot

    Hello,

    I'am using zabbix 1.8.1 and I want to do an automatic start of the deamons "zabbix_server" and "zabbix_agentd" after a shutdown.
    These deamons are in "usr/local/sbin"

    I put it in /etc/init.d/ and i've make symbolic links in /etc/rc2.d/ and etc/rc6.d but it doesn't work.

    Manually, "service zabbix_agentd start" is ok but service zabbix_agentd stop doesn't work.

    Any Ideas ? Thanks
  • Wonderer
    Member
    Zabbix Certified Specialist
    • May 2010
    • 53

    #2
    You should put the links in the correct directories.
    /etc/rc2.d/ is for the runlevel 2
    But the usual runlevel of the system is 3, or 5 if it is using X's.
    You can check your runlevel simply by typing "runlevel" at the prompt.
    Or in the /etc/inittab file searching for "initdefault"

    So you should create links in the /etc/rc3.d or /etc/rc5.d (you can create it in both directories)

    Comment

    • beaujoire
      Junior Member
      • Feb 2010
      • 14

      #3
      My runlevel is 2.
      I also created links in rc3.d and rc5.d but it doesn't work.

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Why not use the init scripts that comes with zabbix.

        Should be in ~/zabbix-1.x.x/misc/init.d/
        Disclaimer: All of the above is pure speculation.

        Comment

        • arli
          Member
          • Jan 2008
          • 71

          #5
          Try links like those:

          to stop
          /etc/rc.d/rc2.d/S85zabbix-agent
          /etc/rc.d/rc3.d/S85zabbix-agent
          /etc/rc.d/rc4.d/S85zabbix-agent
          /etc/rc.d/rc5.d/S85zabbix-agent

          to start
          /etc/rc.d/rc0.d/K15zabbix-agent
          /etc/rc.d/rc1.d/K15zabbix-agent
          /etc/rc.d/rc6.d/K15zabbix-agent

          Comment

          Working...