Ad Widget

Collapse

zabbix_agentd Not auto starting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aderr
    Junior Member
    • Dec 2011
    • 14

    #1

    zabbix_agentd Not auto starting

    I am pretty new to Zabbix, but have been able to get it deployed and monitoring about 75 hots successfully. It is a mix of RedHat and CentOS 5/6 servers.

    I have encountered a problem where the zabbix_agentd service will not start up automatically at boot or on a restart.

    I have tried all the ways that I know to make a service start at boot, but none seem to work.

    Code:
    [root@***** ~]# ls -l /etc/rc.d/rc3.d | grep zabbix
    lrwxrwxrwx 1 root root    23 Jul 16 08:56 S55zabbix_agentd -> ../init.d/zabbix_agentd
    [root@****** ~]# chkconfig --list | grep zabbix
    zabbix_agentd   0:off   1:off   2:on    3:on    4:on    5:on    6:on
    I am running zabbix 2.0 server and agents.

    I am not sure if I installed the agents correctly, but I can start them succesfully from just running
    Code:
    zabbix_agentd
    and no errors come up.

    What is the recommended way to start the zabbix agent daemon on boot/startup?

    Thank you in advance for any help.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I use the supplied start/stop scripts. If you compiled the code, you will find them under ~/misc/init.d/debian/zabbix-agent and ~/misc/init.d/debian/zabbix-server

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

    Now 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

    Note that these scripts have the Zabbix daemon running out of :
    DAEMON=/usr/local/sbin/${NAME}

    Comment

    • vudoo
      Junior Member
      • Aug 2012
      • 2

      #3
      Would that really work though tchjts1 because Centos is RHEL based not debian, I would think this would cause isuses?

      Comment

      • johnw230873
        Member
        • Aug 2010
        • 54

        #4
        I'm running Ubuntu for me a create a text file called Zabbix_agentd.conf in the /etc/init folder (not init.d)

        Attached is the file
        Attached Files

        Comment

        Working...