Ad Widget

Collapse

Discovery action with adding host help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pyrodex
    Junior Member
    • May 2018
    • 6

    #1

    Discovery action with adding host help!

    So I have setup a network discovery on a specific subnet and discovery actions to add/remove hosts not seen over a specific period of time but I am encountering the following "quirks" and need guidance.

    I am running the latest version of 5.0 on the Server/Proxies and the Windows agents are getting version 4.4.5.
    1. When a host is added it is setting the agent interface to the IP address instead of the DNS name. Due to the nature of these subnets servers get rebuilt all the time but always have the same name but not the same IP address as the IP is automatically handed out via next free IP from automation in the /23's. How do I get Zabbix to add the host with the agent interface set to the DNS name? It is there when I check the host but the IP option is selected over the DNS option.
    2. I use host level tags to keep things organized, I read online someone with the same problem and someone suggested to use a Template for the tags. I setup two simple Templates with a tag in each and they are getting linked to the host at creation but the tags aren't coming across and show in the host's record. How could I go about doing this?
    Thanks gurus!
  • AVP.Riga
    Member
    • Oct 2020
    • 59

    #2
    Hello,

    It is most likely a problem with DNS more than Zabbix.
    You must configure DNS(BIND) and Microsoft DNS to work together.

    Comment

    • pyrodex
      Junior Member
      • May 2018
      • 6

      #3
      Originally posted by AVP.Riga
      Hello,

      It is most likely a problem with DNS more than Zabbix.
      You must configure DNS(BIND) and Microsoft DNS to work together.
      How is this a DNS issue? The IP reverse resolves to the same DNS name and also the DNS name, FQDN, resolves to the IP. Zabbix is CLEARLY putting both in the host entry but for some reason chooses IP and I can't change that at creation via this process.

      Comment

      • AVP.Riga
        Member
        • Oct 2020
        • 59

        #4
        It's working fine for me, please see examples:
        Click image for larger version

Name:	DNSdiscoveredWin.PNG
Views:	662
Size:	46.3 KB
ID:	412004
        Click image for larger version

Name:	DNSdiscovered.PNG
Views:	670
Size:	43.0 KB
ID:	412005

        Comment

        • pyrodex
          Junior Member
          • May 2018
          • 6

          #5
          Originally posted by AVP.Riga
          It's working fine for me, please see examples:
          Click image for larger version

Name:	DNSdiscoveredWin.PNG
Views:	662
Size:	46.3 KB
ID:	412004
          Click image for larger version

Name:	DNSdiscovered.PNG
Views:	670
Size:	43.0 KB
ID:	412005
          Read my issue please fully.
          • When a host is added it is setting the agent interface to the IP address instead of the DNS name. Due to the nature of these subnets servers get rebuilt all the time but always have the same name but not the same IP address as the IP is automatically handed out via next free IP from automation in the /23's. How do I get Zabbix to add the host with the agent interface set to the DNS name? It is there when I check the host but the IP option is selected over the DNS option.
          This HOST is getting created via discovery actions and not manually. The host record, created via discovery actions, is populated with the IP and FQDN of the host in both fields but the AUTO HOST CREATION PROCESS is selecting Connect to as IP and I can't find a way at AUTO HOST CREATION to default to DNS.

          See how this isn't a DNS issue?

          Comment

          • AVP.Riga
            Member
            • Oct 2020
            • 59

            #6
            Yes, Sorry. You are right. I read your issue in a hurry.
            As far as I remember, this problem arose earlier.
            Usage of IP is hard coded in Zabbix server code.
            So I see the following options:
            1) Change Zabbix server source code (i.e. set "useip = 0") and recompile server.
            2) Change this parameter via API or mass update option for the already registered hosts later.

            Comment

            • mikestanley464
              Junior Member
              • Oct 2020
              • 1

              #7
              1. I use host level tags to keep things organized, I read online someone with the same problem and someone suggested to use a Template for the tags. I setup two simple Templates with a tag in each and they are getting linked to the host at creation but the tags aren't coming across and show in the host's record. How could I go about doing this? bluestacks omegle Jiotv for pc
              Last edited by mikestanley464; 31-10-2020, 20:19.

              Comment

              • iCLodpAssic
                Junior Member
                • Jul 2025
                • 11

                #8
                Sorry to necropost, but couldn't find any other recent thread about this, and I don't think it's necessary to create a whole new thread of the issue is very clear here.
                Is this still a thing in Zabbi 7.4? anyone more active in the community know if 8.0 will resolve this issue? I'm adding lots of websites and can't use IP addresses for the hosts

                TIA!

                Comment

                • irontmp
                  Member
                  • Sep 2023
                  • 91

                  #9
                  Originally posted by pyrodex
                  So I have setup a network discovery on a specific subnet and discovery actions to add/remove hosts not seen over a specific period of time but I am encountering the following "quirks" and need guidance.

                  I am running the latest version of 5.0 on the Server/Proxies and the Windows agents are getting version 4.4.5.
                  1. When a host is added it is setting the agent interface to the IP address instead of the DNS name. Due to the nature of these subnets servers get rebuilt all the time but always have the same name but not the same IP address as the IP is automatically handed out via next free IP from automation in the /23's. How do I get Zabbix to add the host with the agent interface set to the DNS name? It is there when I check the host but the IP option is selected over the DNS option. I’m trying to understand the configuration properly, similar to choosing professional window film installation for businesses San antonio, where the setup details can make a big difference. I use host level tags to keep things organized, I read online someone with the same problem and someone suggested to use a Template for the tags. I setup two simple Templates with a tag in each and they are getting linked to the host at creation but the tags aren't coming across and show in the host's record. How could I go about doing this?
                  Thanks gurus!
                  For the agent interface, check the discovery action that creates the host. Zabbix can populate the interface from the discovered IP, but you’ll want the discovery action or host prototype configured so the interface uses DNS rather than the discovered address. This is especially important in your case because the IP can change while the hostname stays the same. For the tags, I’d verify whether the tags are actually inherited from the linked templates. Template tags and host-level tags are handled differently, so linking the template alone may not produce the result you expect. I’d check the template’s tag configuration and the host’s inherited tags after creation. If you share the discovery rule/action configuration, it would be easier to pinpoint exactly which setting needs changing.

                  Comment

                  Working...