check_httpv2: Add ability to check a vhost on an IP/host that differs from the vhost's DNS record

97 votes

As per https://forum.checkmk.com/t/cre-2-3-new-httpv2-check-missing-option-for-different-hostname-ip/46595 :

With the old check_http check, it was possible to monitor a website/vhost on a server, even if the domain for this website/vhost points to a different IP in the DNS.
The new check_httpv2 seems to ignore which host it is configured on, and only uses the domain name of the to-be-checked URL to decide which machine to run the check against. There are cases where this cannot achieve the desired result (please see the forum thread for details, as here I am limited to 1000 characters).

My use case: Monitoring a website on a server, where the website is behind a cloudflare reverse proxy, and I want to monitor both directly on the server and going through cloudflare. The former is not possible with the new check, forcing me to keep using the legacy check (which lacks other functionality like HTTP/2).

Under consideration Checks&Agents Suggested by: Jay2k1 Upvoted: 2 days ago Comments: 7

Comments: 7