Ad Widget

Collapse

Search by hostname instead of visible name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas4
    Junior Member
    • Apr 2023
    • 3

    #1

    Search by hostname instead of visible name

    Hy, I would like to search by hostname instead of visible name in Zabbix. Currently I can only search by visible name. Is there a possibility within zabbix to search by host name?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4811

    #2
    global search works just as well with hostname. you can also drop IP-s there or template names

    Comment

    • Thomas4
      Junior Member
      • Apr 2023
      • 3

      #3
      We want to search by hostname without using the global search on the upper left of the screen. Is there any possibility to do this? Can you do this with a script or macros?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4811

        #4
        Where exactly do you want to search? GUI options are pretty limited to that global search... But you can always use API and do any search you want...

        Comment

        • Thomas4
          Junior Member
          • Apr 2023
          • 3

          #5
          We want to search by hostname like in the picture and also in the monitoring tab
          Attached Files

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4811

            #6
            OK.. Clear.
            But seems like it will not work there.. If visible name is set then search will not look into hostname.
            I still fail to see the use case, that global search will not satisfy.. Global search will give you both options in results, config and latest data... Even with partial match, you will get multiple hosts in list... Its just a small adjustment in work flow, I think...

            Comment

            • markosa
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Aug 2022
              • 104

              #7
              DNS field finds hosts which have visible name set, ofcource you need to have that DNS-field filled within host configuration.

              Comment

              Working...