...
...
...
...
...
...
Info |
---|
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. |
...
...
LAST TESTED ON CHECKMK 2.2.0P1 |
|
Note |
---|
check_http has many valuable configuration options. Please click here for some of the more common ones. |
...
Debugging
Info |
---|
|
In the following examples, you will see references to myproxyip and proxy_port. Please replace this information with your own proxy IP and port number. |
...
Code Block |
---|
|
OMD[mysite]:~/lib/nagios/plugins$ ./check_http '-u' 'https://www.google.com/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' 'proxy_port' 'myproxyip' 'www.google.com' |
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.com/' '--ssl' '--onredirect=follow' '-j' 'CONNECT' '--sni' '-p' 'proxy_port' 'myproxyip' 'www.google.com' --verbose |
For more information, you can use --help command flag.
Code Block |
---|
|
OMD[mysite]:~/lib/nagios/plugins$ ./check_http --help |
...