Ad Widget

Collapse

Dymanic IP by ADSL with zabbix-agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bruno
    Junior Member
    • Feb 2007
    • 3

    #1

    Dymanic IP by ADSL with zabbix-agent

    Hey List,
    I installed the zabbix-agent on CPU. which is connected to my zabbix-server by ADSL connection, and the IP is dynamic. How could I config the agent or the server in this case? What could I do when I have a Zabbix-agent connect on my server by ADSL?

    Thanks.
    Best Regast,
    Bruno Sampayo
  • Raph
    Junior Member
    • Jan 2007
    • 12

    #2
    DynDNS account login and overview. Proceed to My Services page to get detailed look.


    setup a hostname for your machines, then point zabbix to the hostname

    dont forget to setup the dyndns dns update client to make sure when the IP changes, that the hostname is updated as well

    Comment

    • James Wells
      Senior Member
      • Jun 2005
      • 664

      #3
      Greetings,
      Originally posted by bruno
      How could I config the agent or the server in this case? What could I do when I have a Zabbix-agent connect on my server by ADSL?
      You have basically two choices here, either use Zabbix Agent (Active) or use DDNS (Dynamic DNS) with extremely short TTL's.

      The Zabbix Agent (Active) mode, the agent will connect to the server periodically and get a list of items it is supposed to monitor, it will then send the results back to the server based on the periodicity that is configured for each item. The Zabbix Agent doesn't care if it connects to the server, once it has it's list of items to monitor.

      With DDNS, the agent server will register it's new DNS information each time it connects to the net. Then the Zabbix Server can connect to the agent and query the items using DNS lookup against the hostname.

      Obviously each one has it's strengths and weaknesses, but, only you can determine which strengths / weaknesses are acceptable.
      Unofficial Zabbix Developer

      Comment

      • bruno
        Junior Member
        • Feb 2007
        • 3

        #4
        re: Dymanic IP by ADSL with zabbix-agent

        But Could I use the another way to do it? Because if I use a dyndns, some time it is really slow to update my dyndns. I would like to use something like MacAddress...

        Thanks...
        Bruno Sampayo

        Comment

        • James Wells
          Senior Member
          • Jun 2005
          • 664

          #5
          Originally posted by bruno
          But Could I use the another way to do it? Because if I use a dyndns, some time it is really slow to update my dyndns. I would like to use something like MacAddress...
          MAC Address will only work if the two devices are on the same physical network, or in this case if the ADSL modem is on the same network as the Zabbix Server.

          As for the slow updates, that is why you use a really low TTL for the DNS entry. Personally, I used to use a private DNS server, and set the TTL to like 60 seconds. Then when my remote system would ghost onto the net, it would update both dyndns.org, and my private DNS server, and I configured my local network to use the local DNS server. That way, my DNS would resolve the ghosted machine about 9 minutes faster than dyndns.org did.
          Unofficial Zabbix Developer

          Comment

          • Nelson O. Aponte
            Junior Member
            • Mar 2007
            • 5

            #6
            Dynamic IP

            Hey guys, I'm having an issue with the dynamic ip's.
            I configured Zabbix server and two agents on my private network, one of the agents is on a different virtual machine running Windows 2003 Server, and I configured the server's ip on the Windows config file as (for example) servers.no-ip.org, and the agent starts monitoring, however the frontend reports the Windows server as unavailable, but if I change the server's ip for the real private address (i,e. 192.168.0.102 on the config file), it works and the frontend reports it as active.
            My network is behind a D-link router (with the public dynamic ip address from an ADSL connection), which is configured to update the domain servers.no-ip.org and to forward any traffic from port 10051 to 192.168.0.102:10051. The firewalls on each the Windows Server and the SuSe Enterprise Server 10 (Zabbix Server) are configured to allow traffic from and to 10051 and 10050.
            I can telnet servers.no-ip.org:10051 from the Windows Server (192.168.0.103), and 192.168.0.103:10050 from the SuSe Server, but it seems the only way to make it work is by using the ip address instead of servers.no-ip.org.
            I need to monitor some servers outside my private network so I need to know how to make this work since I have no static public IP address.

            I appreciate any help.

            Comment

            Working...