HTTPS CRITICAL - Socket timeout after 30 seconds (again)

Hello everybody

I have a weird behavior on my checkmk check check_http.

When I run as “site” using ssh on the server I get a proper answer

OMD[site]:/omd$ ./versions/2.0.0p8.cre/lib/nagios/plugins/check_http '-u' '/GecaRequest/' '--ssl' '-w' '0.200000' '-c' '0.500000' '-t' 10 '-s' 'string' '--extended-perfdata' '-j' 'GET' '--sni' '-p' '443' -H FQDN
HTTP OK: HTTP/1.1 200 200 - 14165 bytes in 0.134 second response time |time=0.133651s;0.200000;0.500000;0.000000;10.000000 size=14165B;;;0 time_connect=0.023515s;;;;10.000000 time_ssl=0.030810s;;;;10.000000 time_headers=0.000031s;;;;10.000000 time_firstbyte=0.076102s;;;;10.000000 time_transfer=0.079189s;;;;10.000000

If I set the check_http even in 2.0p8 I have “CRITICAL - Socket timeout after 30 seconds” for

check_mk_active-http!'-u' '/GecaRequest/' '--ssl' '-w' '0.200000' '-c' '0.500000' '-t' 30 '--extended-perfdata' '-j' 'GET' '--sni' '-p' '443' '$_HOSTADDRESS_4$'

So I don’t get it. I have reboot to clear cache and other but still the same.

Am I the only one ?
Fred

@fjacuqet Does the “FQDN” you specify in the check_http call resolve as the same IPv4-address that is configured for the host you are running the active check for? The way i see it, you are running the check_http against a FQDN and the active check receives a IPv4-address as a host-parameter.

1 Like

true.
From cli checking with IP does not work!
Now I must understand how to force checkmk to use FQDN and not IP …

Inside the configuration for the Active Check you are able to configure what check_http should use to contact the host:


You can also set virtual hosts there, if you have multiple domains configured on the target server.

Finally found it, using CLI is not 100% like active mode. I finally fixed it by declaring the hostname as a virtual host. This way active mode is happy, and I can do my monitoring.
checkmk always return to IP even if I never use them so we must declare virtual hosts as they are

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.