The SQL Server database agent determines which hostname to use for OS collections based on agent configuration properties. Recent enhancements introduce the monHostUserNsLookup flag, which changes hostname resolution behavior to prioritize FQDN via DNS lookup.
Prior to the 7.3.0.10 SQL Server cartridge, hostname selection depended on the osUsePhysicalHostName property:
With the addition of monHostUserNsLookup and the installer agent flag, the agent can now perform DNS lookups to resolve monHost, ensuring FQDN is used for OS collections when enabled.
If monHostUserNsLookup=1 (enabled) or the installer agent flag "Use nslookup to resolve the monitored hostname to FQDN" is enabled, the agent uses monHost and performs a DNS lookup, prioritizing FQDN for OS collections. The installer agent flag applies to new SQL Server agents being created.
If monHostUserNsLookup=0 (disabled or not set) and the installer agent flag is disabled, the agent follows the osUsePhysicalHostName logic:
Note: