Ad Widget

Collapse

[V2.0.4] Instalation with --sysconfdir

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbix_es
    Senior Member
    • Apr 2007
    • 153

    #1

    [V2.0.4] Instalation with --sysconfdir

    Hello:
    I think that I have found and issue with instalation of zabbix V2.0.4 using --sysconfdir option.
    When you use this option and run (configure --sysconfigdir="/etc/zabbix" && make install) new config files are written in right place but the zabbix executable is not compiled tu read /etc/zabbix/zabbix_agentd.conf as default file and the same happens with zabbix_server.
    When you try to start both they complain about /usr/local/etc/*.conf files not found.

    Best regards!
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    please add a bugreport!
    Debian-User

    Sorry for my bad english

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Originally posted by zabbix_es
      Hello:
      I think that I have found and issue with instalation of zabbix V2.0.4 using --sysconfdir option.
      When you use this option and run (configure --sysconfigdir="/etc/zabbix" && make install) new config files are written in right place but the zabbix executable is not compiled tu read /etc/zabbix/zabbix_agentd.conf as default file and the same happens with zabbix_server.
      When you try to start both they complain about /usr/local/etc/*.conf files not found.
      I've built and packaged zabbix 2.0.3 - 2.0.5, and have not encountered this problem. Both the compiled daemons and the installation process honor the setting that is passed to configure.

      Are you certain it's not because you're using "--sysconfigdir"? That should be "--sysconfdir" (no "ig").

      Comment

      • zabbix_es
        Senior Member
        • Apr 2007
        • 153

        #4
        Hello:
        I have used exactly these options:

        CFLAGS="-O2" \
        CXX=gcc \
        CXXFLAGS="-O2 -mtune=nocona -felide-constructors -fno-exceptions -fno-rtti" \
        ./configure --enable-server --enable-agent --with-mysql --with-libcurl --sysconfdir="/etc/zabbix"

        in SLES 11 SP2.

        Best regards!

        Comment

        • zabbix_es
          Senior Member
          • Apr 2007
          • 153

          #5
          Hello:
          I have repeated all process and it works fine it could be something related with caches of old configurations.
          I have made a make clean and a new reconfigure and it works.
          Sorry for the inconvenience!
          Best regards!

          Comment

          Working...