Ad Widget

Collapse

Configuration file's path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    Configuration file's path

    Hi,

    I think it would be cool to be able to pass the configuration file for the agent, aagentd etc... for exemple in freeBSD the files should be in /usr/local/etc but it seems hard coded in the binary to /etc/zabbix/....

    Perhaps we can change this easely into the source but i am not confident on how to recompile with a new hardcoded path

    regards,
    Ghislain.
    Regards,
    Ghislain.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    This is already implemented in 1.1 alphas.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • ghislain
      Senior Member
      • Jun 2005
      • 160

      #3
      ok great !

      i think that precompiled binary will not be available for the alpha versions

      Do you have any view of the zabbix future release path from alpha to beta and to release ? you know, basicaly just to have a global idea of the future

      (hard to see, allways in moving the futur is - Yoda)

      best regards,
      Ghislain.
      Regards,
      Ghislain.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by ghislain
        i think that precompiled binary will not be available for the alpha versions

        Do you have any view of the zabbix future release path from alpha to beta and to release ? you know, basicaly just to have a global idea of the future
        No, precompiled binaries are not available for alpha releases. Check http://www.zabbix.com/next.php for planned functionality of 1.1. I'll switch releases to beta as soon as all the functionality is implemented.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • ghislain
          Senior Member
          • Jun 2005
          • 160

          #5
          ok thanks Alexi.

          oh i forgot, thanks for this great soft !
          Regards,
          Ghislain.

          Comment

          • ghislain
            Senior Member
            • Jun 2005
            • 160

            #6
            humm

            in fact i compiled the alpha10 agent and i cannot find a way to change the config file location for the agent. I tried the --config switch but it does not work (freeBSD). The manual do not state this possibility and zabbix-agent --help or -h does not give any hint. Also i looked at the string in the binary where it seems to be harcoded too. The error message suggest that it can be changed as there is a %c in it. i havent looked at the source as i am not good enough to decypher it

            in inetd.conf i have:

            zabbix_agent stream tcp nowait.3600 zabbix /root/src/zabbix-1.1alpha10/bin/zabbix_agent --config /etc/zabbix/zabbix_agent.conf.test


            and the result is:

            Escape character is '^]'.
            Cannot open config file [/etc/zabbix/zabbix_agent.conf] [m]
            Connection closed by foreign host.

            anything silly i do ?

            Regards,
            Ghislain.
            Regards,
            Ghislain.

            Comment

            • safl
              Senior Member
              • May 2005
              • 103

              #7
              the parameter is:
              -c <file>
              not
              --config <file>

              --config is for the Win32 agent.

              Comment

              Working...