I just added a new host to our monitor server and am getting some connection errors I don't understand. The host is reverse-proxied behind Hiawatha; Hiawatha is using a Let's Encrypt cert for that host. Hiawatha is configured to require TLS, and I set up the webserver in Monitor's CMS to use TLS/443. The error is from the monitor/database/fetch_webserver_logs cron job:
PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=`redacted host name' did not match expected CN=`redacted IP address' in /var/www/monitor/libraries/http.php on line 274
It looks like http.php is expecting an IP address, but gets a hostname and fails? There's nothing in /var/log/hiawatha/*.log or /var/www/monitor/logfiles/*.log that matches this host, and I'm not sure what else I might be able to do to track down the issue. Let me know if you need something else, please and thanks!