Ad Widget

Collapse

2 installs of zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • forlinuxsupport
    Member
    • Oct 2005
    • 39

    #1

    2 installs of zabbix

    Hi

    I have the zabbix server and agent (version 1.1) installed on a server. So its basically running locally.

    i also have the zabbix agent of version 1.0 running on the same server. To monitor it extrnally from another server running zabbix server 1.0 .

    The reason I have done this is I have tried to set up a user that can only see a certain host in zabbix 1.0 and it dosnt seem to work, so this is the only way I can see it working.

    My problem is running 2 different version zabbix agents on the same server.
    I can use the -c flag to specifiy different config files, which works great.
    e.g. /usr/local/bin/zabbix_agentd -c /etc/zabbix/zabbix_agentd-local.conf

    The problem is they both want to use the same .tmp file !!
    E.g. /tmp/zabbix_agentd.tmp

    Is there a flag I can pass the zabbix agent when starting to use a different tmp file, or even a different temp location to store it ?


    Cheers
    andy

    P.s. Does zabbix 1.1 support setting up a different user to view a a certain host ?
  • adam.vollrath
    Member
    • Apr 2006
    • 31

    #2
    You could always grep the source code for zabbix_agentd.tmp and change the path. Shouldn't be too hard.

    Note you may also need to modify two different zabbix_agentd.conf files to use different port numbers.

    P.S. In the PHP frontend, the user configuration, you can set permissions to only see one host, yes. I'm not sure if this works with host groups or templates. If not, it should...

    Comment

    • forlinuxsupport
      Member
      • Oct 2005
      • 39

      #3
      coool, thanks for the quick reply.

      The start scripts are encoded so I cant change anything in there

      I will try the user thing in the new version of zabbix

      Comment

      • forlinuxsupport
        Member
        • Oct 2005
        • 39

        #4
        hehe .. good old emacs saved the day

        I juts hex edit it and changed the path to the tmp file

        seem to be working now

        I will still check and see if the user access works

        thanks again

        Comment

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

          #5
          There will be no tmp file in ZABBIX 1.4. Shared memory will be used instead.

          Currently location of the file is hardcoded and there are no perameter which can control the location in agent's configuration file.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • patrickpeng
            Junior Member
            • Jul 2006
            • 26

            #6
            what is in the tmp file

            hello
            It seems you all know the tmp file "zabbix_agentd.tmp" under the directory /tmp, can you tell me what data should be include in this file, and what they can tell me? thanks

            Comment

            Working...