Step-by-step guide
- Configure the Check
Setup → Services → HTTP, TCP, Email, ... → Check HTTP service
- Some important options
- Virtual host → is necessary if you have multiple domains one host running
- Use proxy → If you need a proxy to access the domain
- How to handle redirect → How to handle redirected pages
- HTTP Method → Set CONNECT if you're using a proxy
Disable SNI
Debuggig
List of public proxies for debugging: https://spys.one/free-proxy-list/DE/
https://www.monitoring-plugins.org/doc/man/check_http.html
OMD[cme2]:~/lib/nagios/plugins$ cmk -N |grep http check_command check_mk_active-http!'-u' 'https://www.google.de/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' '3128' '173.212.220.96' 'www.google.de' command_line /omd/sites/cme2/lib/nagios/plugins/check_http $ARG1$ command_name check_mk_active-http or OMD[cme2]:~/lib/nagios/plugins$ lq "GET services\nColumns:host_name description check_command_expanded\nFilter: host_name = localhost\nFilter: description = HTTPS HTTPS" localhost;HTTPS HTTPS;check_mk_active-http!'-u' 'https://www.google.de/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' '3128' '173.212.220.96' 'www.google.de'
OMD[cme2]:~/lib/nagios/plugins$ ./check_http '-u' 'https://www.google.de/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' '3128' '173.212.220.96' 'www.google.de' or with --verbose OMD[cme2]:~/lib/nagios/plugins$ ./check_http '-u' 'https://www.google.de/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' '3128' '173.212.220.96' 'www.google.de' --verbose
curl -x 173.212.220.96:3128 https://www.google.de/ --verbose
Related articles