Issue
"MS SQL : Certificate validation failed. The hostname in the SQL Servers certificate does not match the configured hostname. Please ensure the certificates Common Name (CN) or Subject Alternative Name (SAN) matches the hostname used in Applications Manager......"
This error can occur in either of the following scenarios.
Cause: The SQL Server was configured using an IP address in the Host Name / IP Address field. SSL/TLS certificate validation requires a hostname that matches the certificate's Common Name (CN) or Subject Alternative Name (SAN). Since certificates are typically issued to hostnames rather than IP addresses, validation fails.
Fix: Re-enter the monitor details using the fully qualified hostname (FQDN) instead of the IP address in the Host Name / IP Address field and retry.
Cause: Although the monitor is added successfully, Applications Manager performs a reverse DNS lookup on the SQL Server IP address to obtain the hostname used for SSL certificate validation. If reverse DNS is not configured or returns an unexpected hostname, the hostname may not match the CN or SAN entries in the SQL Server certificate, causing certificate validation to fail and the monitor to turn critical.
Fix:
Option 1 — Update the Hostname from the UI (Recommended)