Windows Agent Configuration - Hostname as FQDN

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
### 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=

### 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.run[powershell.exe -command "([System.Net.Dns]::GetHostByName(($env:ComputerName))).HostName.ToLower()"]