sensu-plugins / sensu-plugins-http

This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
http://sensu-plugins.io
MIT License
30 stars 97 forks source link

check-http.rb fails with IPv6(-only) DNS names #175

Open WilliamDEdwards opened 4 years ago

WilliamDEdwards commented 4 years ago

Command: check-http.rb -u :::http.url|https://rpm.cyberfusion.nl::: -k -r

Output: CheckHttp CRITICAL: Request error: Failed to open TCP connection to rpm.cyberfusion.nl:443 (Hostname not known: rpm.cyberfusion.nl)

IPv6-only DNS name:

MacBook-Air-van-William:~ wedwards$ host rpm.cyberfusion.nl
rpm.cyberfusion.nl is an alias for packages.cyberfusion.nl.
packages.cyberfusion.nl has IPv6 address 2a0c:eb00:0:f7:185:233:175:203