Ad Widget

Collapse

DNS name instead of ip address for SERVER parameter in agent conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixfk
    Senior Member
    • Jun 2013
    • 256

    #1

    DNS name instead of ip address for SERVER parameter in agent conf

    Hello All,

    Wanted just a clarification/understanding of SERVER= parameter in zabbix_agentd.conf. I am able to get the values only if i pass ipaddress of the zabbix server against dns name. Is there any way to get this working ( i tried replacing ip address to dns name, but was not getting any values on zabbix UI, even zabbix get got failed.)

    Has anybody got this working ? ( Was looking at building DR, and can't afford to hardcode/static ipaddress in agent conf files)

    Please share your pointers/inputs.

    Thanks.
  • pc99096
    Senior Member
    • Oct 2011
    • 193

    #2
    ok and is dns resolving working on the os level?

    Comment

    • zabbixfk
      Senior Member
      • Jun 2013
      • 256

      #3
      DNS name instead of ip address for SERVER parameter in agent conf

      Thanks for the reply. Yes DNS resolve perfectly works fine.

      Comment

      • pc99096
        Senior Member
        • Oct 2011
        • 193

        #4
        i believe hostnames should work as well as ip addresses:



        something strange in the agent log file?

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Some notes from documentation:
          List of comma delimited IP addresses (or hostnames) of Zabbix servers. No spaces allowed.
          Incoming connections will be accepted only from the hosts listed here.
          Note that hostnames must resolve hostname→IP address and IP address→hostname.
          Please, check both DNS resolving.
          You can use DebugLevel=4 to get more information in zabbix-agent.log files
          Sincerely yours,
          Aleksey

          Comment

          • zabbixfk
            Senior Member
            • Jun 2013
            • 256

            #6
            DNS name instead of ip address for SERVER parameter in agent conf

            Thanks for the reply. Ya got it figured out. Issue resolved.

            Thanks.

            Comment

            • pc99096
              Senior Member
              • Oct 2011
              • 193

              #7
              ok and what about putting the solution/explanation here?

              Comment

              • zabbixfk
                Senior Member
                • Jun 2013
                • 256

                #8
                DNS name instead of ip address for SERVER parameter in agent conf

                Sorry, my bad !!!

                Though DNS was resolving from agent ( linux machine ), firewall was enabled ( iptables ) : which was blocking both internal/external connections on specific ports ( 10050/51 ).

                This link helped to add iptable rules


                Thanks.

                Comment

                Working...