Changing check_http timeout in definition

Hey all
I have a checkmk RAW host that also runs some check_http checks to alert if the certificate is going to check the certificate age.
Currently this is working brilliantly apart from 1 thing, I get the following error every once in a while:
“CRITICAL - Socket timeout after 10 seconds”

My goal is to just increase the socket timeout and I did stumble on this topic in my search.
SSL Check Timeout - Troubleshooting - Checkmk Community

I did not understand how to change the definition of the check_http check, I did find this file but did not find a way to change.

Thanks!

There’s a checkbox Seconds before connection times out and then you can add a value, default is 10 seconds.

Grabbed a config of mine for a visual (-:

I do see that test but I’m using the check mode “Check SSL Certificate Age” and it does not show up there.

Okay, my bad.

Maybe you can still change the timeout with check url mode part and after wards change check mode back to ssl age. Will probably not work. But would be fun if it would. :stuck_out_tongue:

What is suggested in specific forum post can be found here:
Setup | Services | Other services | Integrate Nagios plugins

image

Following, suggested by @andreas-doehler in SSL Check Timeout - #4 by andreas-doehler , would go in the command line:

check_http -C 30,7 --sni -t 30 ssl_domain.com

Thanks! That’s exactly what I was looking for.
I know it’s kind of a workaround, but I hope it will work better now.

1 Like

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.