Ad Widget

Collapse

Problems starting agentd service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aiko
    Junior Member
    • Nov 2007
    • 2

    #1

    Problems starting agentd service

    Hello All,

    I am having a problem with the agentd service for zabbix 1.4.2 for centOS 5

    Everytime I try to start the service...I get the following error...

    /etc/init.d/zabbix_agentd start
    /etc/init.d/zabbix_agentd: line 81: /usr/local/zabbix: is a directory
    /etc/init.d/zabbix_agentd start: zabbix_agentd could not be started

    The server service starts fine.....

    I have tried to manually copy over the zabbix_agentd but with no avail....


    I followed the direct instructions from this site;
    Meta descriptions are HTML attributes that provide concise explanations of the contents of web pages. They should optimally be between 150-160 characters.



    Any help would be greatly appreciated.....

    TIA,
    Aiko
  • alekstef
    Junior Member
    • Nov 2007
    • 3

    #2
    Open /etc/init.d/zabbix_agentd and find "/usr/local/zabbix". Now replace it with "/usr/local/bin/zabbix_agentd" (without the "" of course) Then try to start the Zabbix Agent Daemon again. It should work.

    Comment

    • aiko
      Junior Member
      • Nov 2007
      • 2

      #3
      Problem still occurs

      Hello,
      Thanks for your fast reply but I am still not able to start the service after following the above advice. I am about to remove the installation and start from scratch.


      Thanks,
      Aiko

      Comment

      • mucknet
        Member
        • Dec 2004
        • 59

        #4
        The variables in your init script should look like the following, and when you run a find /usr/local/zabbix you should see one of the two results below. If you don't, please post up the first 50 lines of your init file (head -50 /etc/init.d/zabbix_agentd), and show us whats in your zabbix directory (find /usr/local/zabbix)



        1.4.1 placed its binaries under bin/, and in 1.4.2 they changed to placing the binaries under sbin/ (which seems like an odd time to make the change.. why not wait until 1.5 or 1.6?)

        on 1.4.2 the top of the init script should look like:
        Code:
        # base zabbix dir
        BASEDIR=/usr/local/zabbix
        # pid file (as of 1.0 beta 10)
        PIDFILE=/var/tmp/zabbix_agentd.pid
        # binary file
        ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd
        and you should see the following results from running find /usr/local/zabbix
        Code:
        [root@zabbixdemo ~]# find /usr/local/zabbix
        /usr/local/zabbix
        /usr/local/zabbix/sbin
        /usr/local/zabbix/sbin/zabbix_sender
        /usr/local/zabbix/sbin/zabbix_agentd
        /usr/local/zabbix/sbin/zabbix_get
        /usr/local/zabbix/sbin/zabbix_server
        /usr/local/zabbix/sbin/zabbix_agent

        on 1.4.1 the results should be similar, but with bin/ instead of sbin/

        Code:
        # base zabbix dir
        BASEDIR=/usr/local/zabbix
        # pid file (as of 1.0 beta 10)
        PIDFILE=/var/tmp/zabbix_agentd.pid
        # binary file
        ZABBIX_AGENTD=$BASEDIR/bin/zabbix_agentd
        Code:
        [root@zabbixdemo ~]# find /usr/local/zabbix
        /usr/local/zabbix
        /usr/local/zabbix/bin
        /usr/local/zabbix/bin/zabbix_sender
        /usr/local/zabbix/bin/zabbix_agentd
        /usr/local/zabbix/bin/zabbix_get
        /usr/local/zabbix/bin/zabbix_server
        /usr/local/zabbix/bin/zabbix_agent

        Comment

        Working...