Ad Widget

Collapse

How can I use hostnames instead of verbose uname?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • svte
    Junior Member
    • Aug 2025
    • 8

    #1

    How can I use hostnames instead of verbose uname?

    Zabbix shows me host names as long strings (see the screenshot attached) like Windows HOSTNAME1 10.0.17763 Microsoft Windows Server 2019 Standard x64
    how can I get it to show only the hostname (HOSTNAME1)? Because all the graphs on dashboards use this long hostnames it becomes quite cluttered.
    Attached Files
  • Answer selected by svte at 14-08-2025, 13:50.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    system.uname, what you are using there, returns exactly, what you see there... better use system.hostname

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #2
      How are those hosts being created?

      Comment

      • svte
        Junior Member
        • Aug 2025
        • 8

        #3
        Originally posted by troffasky
        How are those hosts being created?
        with a discovery rule:
        Attached Files
        Last edited by svte; 14-08-2025, 08:20.

        Comment

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

          #4
          system.uname, what you are using there, returns exactly, what you see there... better use system.hostname

          Comment

          Working...