Ad Widget

Collapse

Autodiscovery name issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdouhan
    Junior Member
    • Oct 2006
    • 23

    #1

    Autodiscovery name issue

    Hello

    after auto discovery all my hosts are added properly and linked properly to my template, but they are all shown as IP addresses, how can I make then show as their DNS names ?

    This would be useful so I do not have to go back and edit 5000 auto discovered Cisco Switches.

    Any ideas how to do this?

    rgds

    Matt
  • gescheit
    Senior Member
    • Jul 2007
    • 156

    #2
    For this purpose, I wrote a script in Python. But it is at work.

    It would have been nice if the developers added resolving in Discovery.

    Comment

    • mdouhan
      Junior Member
      • Oct 2006
      • 23

      #3
      could you maybe share the script on monday?

      Comment

      • gescheit
        Senior Member
        • Jul 2007
        • 156

        #4
        Yes. I use this script to chandge port of host after Discovery.

        Comment

        • gescheit
          Senior Member
          • Jul 2007
          • 156

          #5
          Variable "group" - a group which must resolved hosts. Yet not forget to change your parameters of MySQL
          Attached Files

          Comment

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

            #6
            Originally posted by mdouhan
            Hello

            after auto discovery all my hosts are added properly and linked properly to my template, but they are all shown as IP addresses, how can I make then show as their DNS names ?

            This would be useful so I do not have to go back and edit 5000 auto discovered Cisco Switches.

            Any ideas how to do this?

            rgds

            Matt
            I can make a "fix" for 1.4.2 which would work the following way:

            1. If a host has DNS name, host name will be set to the DNS name.
            2. If DNS name cannot be resolved, host name will be set to the IP address.

            Host will be monitored by IP address in both cases.

            What do you think?
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • testos
              Member
              • Apr 2007
              • 85

              #7
              In discovery zabbix agent bassed, it would be very interesting to be able choose the key would give name to host, similar to zabbix agent key when creating discovery rules.
              Last edited by testos; 30-07-2007, 21:29.

              Comment

              • mdouhan
                Junior Member
                • Oct 2006
                • 23

                #8
                That would rock the world

                Hey

                If you could make a "fix" for 1.4.2 that would set hostname to DNS name that would be absolutelty fantastic, checks on IP is ok it is the hostname I want for the naming convention, I cannot explain how useful that would be it would be really really great.

                I am currently at 1000 devices and still adding

                Estimated end goal is 7-10.000 devices it will be interesting to see how we can make this scale.

                rgds

                Matt

                Comment

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

                  #9
                  Originally posted by mdouhan
                  If you could make a "fix" for 1.4.2 that would set hostname to DNS name that would be absolutelty fantastic, checks on IP is ok it is the hostname I want for the naming convention, I cannot explain how useful that would be it would be really really great.

                  I am currently at 1000 devices and still adding

                  Estimated end goal is 7-10.000 devices it will be interesting to see how we can make this scale.
                  I did it for pre 1.4.2. Now it does DNS lookup and updates DNS name. DNS name is used as a host name on host creation as well.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  Working...