Ad Widget

Collapse

zabbix with dynamic ip (agentd)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • axel
    Member
    • Aug 2005
    • 36

    #1

    zabbix with dynamic ip (agentd)

    Hi

    I have a new zabbix @ a local network with a dynamic IP.

    How can i configure the agents @ the clients.

    i have to set the zabbix server @ each client .

    for example:

    server="zabbix server ip"

    But i have a dynamic zabbix Server ip.

    Anyone can help me to fix the Problem ?
  • Alex Rabotiajev
    Junior Member
    • Aug 2005
    • 7

    #2
    Originally posted by axel
    Hi

    I have a new zabbix @ a local network with a dynamic IP.

    How can i configure the agents @ the clients.

    i have to set the zabbix server @ each client .

    for example:

    server="zabbix server ip"

    But i have a dynamic zabbix Server ip.

    Anyone can help me to fix the Problem ?
    You mast use computer name from dns. Not ip addres.

    Comment

    • axel
      Member
      • Aug 2005
      • 36

      #3
      But if i set.

      Server=host.dyndns.org

      the zabbix_agentd.log say me .

      Connection from [xx.xx.193.201] rejected. Allowed server is [host.dynalias.org]

      What can i do ?

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Greetings,

        I actually just reposted Simon Matter's patch for this last night. The patch is in the thread called;
        PATCH: Allow use of server Hostname or IP in agent config
        Unofficial Zabbix Developer

        Comment

        • axel
          Member
          • Aug 2005
          • 36

          #5
          hi again

          ok i edit my security.c with the changes.
          Than i recompile it with ./configure --enable-agent --prefix=/..../...

          now i start the new agentd again but i have the same Problem

          do i miss something ?
          Last edited by axel; 08-09-2005, 12:22.

          Comment

          • James Wells
            Senior Member
            • Jun 2005
            • 664

            #6
            Grrrr. I guess I misunderstood your original message. What you are dealing with is different from the intent of the patch. The patch supports server naming, however, it uses DNS to look up the hostname of the servrer connecting to it. Unfortunately, dynalias.org does not update the DNS PTR records, which is what the agent has to use as it is looking up the host name from the server IP.

            In your case, you will have to use the Zabbix agent in active mode.
            Unofficial Zabbix Developer

            Comment

            • axel
              Member
              • Aug 2005
              • 36

              #7
              ok thx i try it

              Comment

              • James Wells
                Senior Member
                • Jun 2005
                • 664

                #8
                Good luck. And sorry for the misunderstanding.
                Unofficial Zabbix Developer

                Comment

                • ruckus37
                  Member
                  • Oct 2004
                  • 57

                  #9
                  Just for interest are you also monitoring client pc's

                  Comment

                  • James Wells
                    Senior Member
                    • Jun 2005
                    • 664

                    #10
                    Was just thinking about this a bit more. and I think I see HUGE problem.

                    On startup, the agent reads the config file to obtain the server's IP address, or if you use the patch, the servers IP address or hostname which it translates into an IP address. The agent will continue to use that IP address, and that IP address only until it is restarted. Now, depending on how often you recieve a new IP address, this could cause you to completely lose contact with the agents, and even more importantly, open the agents up to possible compromise.

                    For example. You recieve a DHCP assigned IP address, you remote over and start the agent. The agent gets the IP address and starts communicating with the server. 15 minutes later, you get a new DHCP IP addressfor whatever reason. You will have to restart the agent or competely lose access to it. However, agent, is still sending data to the old IP address and if someone just happens to have a Zabbix server running at that old IP address, they now have full access to the Zabbix agent.
                    Unofficial Zabbix Developer

                    Comment

                    • axel
                      Member
                      • Aug 2005
                      • 36

                      #11
                      i find out another way but not stable way . (only for testing)

                      I write a script that if the firewall @ the local network get a new ip the firewall connect to a monitored server and edit the zabbix_agentd.cfg and restart agent.

                      But tomorrow i try the aktive checks i hope that everything i need is supported
                      Last edited by axel; 09-09-2005, 00:39.

                      Comment

                      • hwinkel
                        Junior Member
                        • Sep 2005
                        • 7

                        #12
                        Why not sending data to the Server

                        Hi,

                        We also thinking of using Zabbix for many remote devices connected with
                        DSL lines with Dynamic IP's.

                        Can the agentd send performance data to the server ?

                        Comment

                        Working...