Ad Widget

Collapse

zabbix_agent.conf vs. zabbix_agentd.conf

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

    #1

    zabbix_agent.conf vs. zabbix_agentd.conf

    I have installed the Zabbix 2.0.2 agent on an Ubuntu 12.04 machine. It works great if I start using zabbix_agentd.

    However, I placed zabbix_agent in /etc/init.d and configured it appropriately to run at startup and that is failing.

    If I do the following from the command line

    sudo /etc/init.d/zabbix_agent

    I get the error message

    zabbix_agent [1559]: cannot open config file [/usr/local/etc/zabbix_agent.conf]

    If I then copy zabbix_agentd.conf to zabbix_agent.conf

    sudo /etc/init.d/zabbix_agent

    instead produces the error

    zabbix_agent [1563]: unknown parameter [ServerActive] in config file [/usr/local/etc/zabbix_agent.conf]

    So...

    Why the two different config files, and how can I get zabbix_agent to start properly?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    You want to be using zabbix_agentd.conf as well as the zabbix_agentd binary.
    Looks like you are trying to mix and match.

    But if you are bent on using zabbix_agent...

    Step 7

    Configure /etc/inetd.conf

    If you plan to use zabbix_agent instead of the recommended zabbix_agentd, the following line must be added:

    zabbix_agent stream tcp nowait.3600 zabbix /opt/zabbix/bin/zabbix_agent

    Restart inetd

    shell> killall -HUP inetd

    Modify default settings in configuration files

    Comment

    • Trips2007
      Junior Member
      • Sep 2012
      • 17

      #3
      It turns out I was following outdated instructions on how to get Zabbix to start at boot time.

      Comment

      Working...