This plugin tests the HTTP service on the specified host. It can test normal (HTTP) and secure (HTTPS) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times.
Some important options
...
Image Removed
...
Debugging
Debugging with curl
If you have trouble using check_http, you can start to query the URL with curl:
Code Block |
---|
|
curl -x 173.212.220.96:3128 https://www.google.de/ --verbose |
Execute the active Check manually
There are several ways to access the command. One way is described here: Check Email (check_mail)
...
Code Block |
---|
|
OMD[mysite]:~/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[mysite]:~/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[mysite]:~/lib/nagios/plugins$ ./check_http --help |
Debugging with curl
If you have trouble using check_http, you can start to query the URL with curl:
...
...
Some important options
Image Added
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("check_http","http") and type = "page" and space = "KB" |
---|
labels | http check_http |
---|
|
...