I'm using discovery and the host names are coming out funny. How do I get the hostnames to be normal?
Ad Widget
Collapse
Formatting Discovered hostnames.
Collapse
X
-
Tags: None
-
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