Ad Widget

Collapse

Zabbix Agent w/ DHCP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pnicolosi78
    Junior Member
    • Dec 2004
    • 24

    #1

    Zabbix Agent w/ DHCP

    My scenario is this. We monitor several clients' servers using Zabbix. While we have no problem with static IP addresses and getting them to be able to talk to the Zabbix server, we can't seem to get our clients which use an internet service that has dynamic IPs. How would I configure the agent, and zabbix server to recognize the client and get the information that I need from it? Any help would be greatly appreciated., and no, making the client get a static IP is not a viable option at this point.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Maybe you could assign static DNS names and monitor these hosts by DNS name rather than IP address...
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • pnicolosi78
      Junior Member
      • Dec 2004
      • 24

      #3
      how do I do that?

      Comment

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

        #4
        Well, actually I have no idea Possibly combination of DHCP and DNS could do the trick. In this case, I believe MAC addresses can be used to uniquely identify client servers.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • kmh27
          Junior Member
          • Feb 2005
          • 14

          #5
          Dynamic DNS

          Not sure of your exact environment, but look into Dynamic DNS services.

          I believe EveryDNS.net has a reliable free service. I'm sure there are several other around.

          Basically you run a client on your hosts with dynamic IP's, the client code sends an update to the server when the host ip changes.

          Comment

          • pnicolosi78
            Junior Member
            • Dec 2004
            • 24

            #6
            I know about dynamic DNS services, I just wasn't sure if Zabbix has to use IP addresses or if it can use a fully qualified domain name. I.E windowssucks.microsoft.com. So can Zabbix reference servers by dns name? Conversely, can the agents refer to the zabbix server by a dns name? And one more question, can an agent transmit data back to multiple zabbix servers? I.e if I have a zabbix1.domain.com and a zabbix2.domain.com both having different IP addresses, can the agent transmit back to both?

            Comment

            • Mark Ramm-Christensen
              Junior Member
              • Oct 2004
              • 14

              #7
              Originally posted by pnicolosi78
              I know about dynamic DNS services, I just wasn't sure if Zabbix has to use IP addresses or if it can use a fully qualified domain name. I.E windowssucks.microsoft.com. So can Zabbix reference servers by dns name? Conversely, can the agents refer to the zabbix server by a dns name? And one more question, can an agent transmit data back to multiple zabbix servers? I.e if I have a zabbix1.domain.com and a zabbix2.domain.com both having different IP addresses, can the agent transmit back to both?
              I believe you need a static IP for the server. The zabbix agent will respond to multiple server requests, as long as they are all listed as allowed in the .conf file. Check the docs for more details.

              To specify multiple servers, you can either write
              their addresses in one line separated by commans, or create multiple
              "Server = ..." lines.
              I have not tried to configure zabbix_sender with multiple servers, so I can't speak to that.

              --Mark

              Comment

              • cooper
                Senior Member
                • Sep 2004
                • 110

                #8
                Mark is correct on on the agent stuff. The agentd.conf needs an IP address for the server. It will not reverse a dns name to an IP. And it can contain multiple IPs if you want more than one server to query the agent. As for zabbix_sender, i think you would have to call it multilple times, using a while loop or such, one for each server you wanted to send to.

                Using a dynamic provider for the client works fine. By default zabbix_server will query based on the hostname you have configured. You can override that by checking the use IP Address box on the host config. I have had excellent results with dyndns.org.

                HTH

                cooper

                Comment

                • pnicolosi78
                  Junior Member
                  • Dec 2004
                  • 24

                  #9
                  Unfortunately the servers I monitor with Zabbix are all WIndows servers. For what my company wants me to have monitor, it does the job. The Zabbix server will always have a static IP, so long as the Zabbix Agent can be reached by DNS name it will work for me. The pain with my setup is having to traverse the internet and open up ports on firewalls. Thanks for the help from everyone.

                  Comment

                  • pnicolosi78
                    Junior Member
                    • Dec 2004
                    • 24

                    #10
                    if my network has multiple ISPs for redundancy, can I specify two seperate IPs for the Zabbix server in the .conf file for the zabbix agent? Will this cause a problem with the database if it's reporting to two different IPs? Basically I'm looking for a failover in-case my primary internet connection goes down.

                    Comment

                    Working...