Ad Widget

Collapse

zabbix agent is not reading /etc/default/zabbix-agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    zabbix agent is not reading /etc/default/zabbix-agent

    I have compiled zabbix agent 3.4.14 on Debian 6.0. But whenever I start zabbix agent using old init script (2.2 and 3.4 init scrip are same), it looks for /usr/local/etc/zabbix_agentd.conf. I tried testing by compiling zabbix-agent with default settings and then tried "--sysconfdir=/etc/" and "--sysconfdir=/etc/zabbix".

    If I start /usr/sbin/zabbix-agent -c /etc/zabbix/zabbix_agentd.conf it works fine. Any idea if I am missing something when compiling or something is wrong with init script?

    /etc/default/zabbix-agent is set to read /etc/zabbix/zabbix_agentd.conf but default init script isn't reading /etc/default/zabbix-agent.


    When compiling I've tried all 3 ways.
    ./configure --enable-agent
    ./configure --sysconfdir='/etc' --enable-agent
    ./configure --sysconfdir='/etc/zabbix' --enable-agent
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #2
    Fixed it.

    had to deleted the old source and extract a new one and then compile with options "./configure --sysconfdir='/etc/zabbix' --enable-agent" and now it looks work as expected.

    Comment

    Working...