Ad Widget

Collapse

Formatting Discovered hostnames.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ComputerHabit
    Member
    • Jun 2020
    • 46

    #1

    Formatting Discovered hostnames.

    I'm using discovery and the host names are coming out funny. How do I get the hostnames to be normal?

    Click image for larger version

Name:	Annotation 2020-06-10 131454.png
Views:	1521
Size:	41.6 KB
ID:	403106
  • ComputerHabit
    Member
    • Jun 2020
    • 46

    #2
    I realize that the hostname and visible name fields are related. If the visible name isn't present then hostname is used in the name. Switching these around I can get the DNS name easily enough. I did switch Hostname to DNS Name. When I leave Visible Name set to Hostname it is empty. How is host name gathered? This is for a windows system. I'm guessing the conf file or something like that.

    In the agent conf I have:
    ### Option: Hostname
    # Unique, case sensitive hostname.
    # Required for active checks and must match hostname as configured on the server.
    # Value is acquired from HostnameItem if undefined.
    #
    # Mandatory: no
    # Default:
    # Hostname=
    #Hostname=Windows host
    ### Option: HostnameItem
    # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
    # Does not support UserParameters or aliases.
    #
    # Mandatory: no
    # Default:
    # HostnameItem=system.hostname
    HostnameItem=system.hostname[host]

    For the Zabbix agent "system.uname" I get that long string that has the hostname and the os all mixed up together. Is that an agent side conf setting? In my conf above I have the hostname commented out because I'm using the hostnameitem option. From my understanding that would generate the defaults I want. Which is DisplayName = short hostname.

    Any suggestions are appreciated.

    Comment

    • ComputerHabit
      Member
      • Jun 2020
      • 46

      #3
      I figured it out.

      Click image for larger version

Name:	Annotation 2020-06-10 154045.png
Views:	1408
Size:	31.2 KB
ID:	403110

      Comment

      Working...