This plugin tests the HTTP service on the specified host. It can test normal (httpHTTP) and secure (httpsHTTPS) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times.
...
- Configure the Check
Setup → Services → HTTP, TCP, Email, ... → Check HTTP service
- Some important options
- Virtual host → host → is necessary if you have multiple domains and 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
Info
...
Now you need to run the check_http and to paste the copied parameters:
Code Block |
---|
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' |
For a detailed log, you can use --verbose at the end of the command:
Code Block |
---|
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 |
For more information, you can use --help command flag.
Code Block |
---|
OMD[cme2]:~/lib/nagios/plugins$ ./check_http --help |
...
If you have trouble using check_http, you can start to query the url URL with curl:
Code Block |
---|
curl -x 173.212.220.96:3128 https://www.google.de/ --verbose |
...