<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 30, 2024 at 2:51 PM Marc Haber <<a href="mailto:mh%2Bhelp-monitoring-lists@zugschlus.de">mh+help-monitoring-lists@zugschlus.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Sep 30, 2024 at 12:29:08PM +0200, Dominik Robert wrote:<br>
> 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 <a href="http://podologie-feiner-fuss.de" rel="noreferrer" target="_blank">podologie-feiner-fuss.de</a> -f follow —sni<br>
> <br>
> I have problems with URLs which DNS is located at hetzner. For Example: /usr/lib/nagios/plugins/check_http -w 5 -c 10 -H <a href="http://it-knowledgebase.net" rel="noreferrer" target="_blank">it-knowledgebase.net</a> -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.<br></blockquote><div><br></div><div>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):</div><div><br></div><div>ckadm@mintp ~ $ /usr/lib/nagios/plugins/check_http -H <a href="http://it-knowledgebase.net">it-knowledgebase.net</a> -f follow -S --sni<br>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</div><div><br></div><div><br></div><div> </div><br></div></div>