From dominikrobert at gmx.de Mon Sep 30 12:29:08 2024 From: dominikrobert at gmx.de (Dominik Robert) Date: Mon, 30 Sep 2024 12:29:08 +0200 Subject: check_http and Hetzner DNS Message-ID: <23EDE31F-E2B0-4B07-BFA4-68F699748CC1@gmx.de> Hello, I have following Problem and maybe you can help me with that. I want to try the check_http plugin and everything works fine with this command: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H podologie-feiner-fuss.de -f follow ?sni I have problems with URLs which DNS is located at hetzner. For Example: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H it-knowledgebase.net -f follow ?sni this does not work. Is there anything I can do? The architecture is the same except the first one is located at 1&1 and the other one is from hetzner. I have like 10 Domains which Works on different domains and like 10 which does not work and they are all located at hetzner. Greetngs Dominik From mh+help-monitoring-lists at zugschlus.de Mon Sep 30 14:50:44 2024 From: mh+help-monitoring-lists at zugschlus.de (Marc Haber) Date: Mon, 30 Sep 2024 14:50:44 +0200 Subject: check_http and Hetzner DNS In-Reply-To: <23EDE31F-E2B0-4B07-BFA4-68F699748CC1@gmx.de> References: <23EDE31F-E2B0-4B07-BFA4-68F699748CC1@gmx.de> Message-ID: On Mon, Sep 30, 2024 at 12:29:08PM +0200, Dominik Robert wrote: > I want to try the check_http plugin and everything works fine with this command: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H podologie-feiner-fuss.de -f follow ?sni > > I have problems with URLs which DNS is located at hetzner. For Example: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H it-knowledgebase.net -f follow ?sni this does not work. Is there anything I can do? The architecture is the same except the first one is located at 1&1 and the other one is from hetzner. Two things: - sni is a https only thing, but your checks use plain http. I didn't get it to work at all with the -sni option. - the it-knowlegdebase.net domain has IPv6, so check_http uses IPv6. That didn't work for me. Forcing IPv4 using -4 made it work. Is your web server configured to serve the it-knowledebase.net site via IPv6? I would recommend monitoring IPv4 and IPv6 seperately. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 From ck at claudiokuenzler.com Mon Sep 30 17:48:09 2024 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Mon, 30 Sep 2024 17:48:09 +0200 Subject: check_http and Hetzner DNS In-Reply-To: References: <23EDE31F-E2B0-4B07-BFA4-68F699748CC1@gmx.de> Message-ID: On Mon, Sep 30, 2024 at 2:51?PM Marc Haber < mh+help-monitoring-lists at zugschlus.de> wrote: > On Mon, Sep 30, 2024 at 12:29:08PM +0200, Dominik Robert wrote: > > I want to try the check_http plugin and everything works fine with this > command: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H > podologie-feiner-fuss.de -f follow ?sni > > > > I have problems with URLs which DNS is located at hetzner. For Example: > /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H it-knowledgebase.net -f > follow ?sni this does not work. Is there anything I can do? The > architecture is the same except the first one is located at 1&1 and the > other one is from hetzner. > As Marc already mentioned, the --sni parameter is used in combination with -S (ssl) and you've not used -S in your command. Append it and it will work (at least it does here): ckadm at mintp ~ $ /usr/lib/nagios/plugins/check_http -H it-knowledgebase.net -f follow -S --sni HTTP OK: HTTP/1.1 200 OK - 55310 bytes in 0.390 second response time |time=0.390464s;;;0.000000;10.000000 size=55310B;;;0 -------------- next part -------------- An HTML attachment was scrubbed... URL: