Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Table of Contents

Some important options

...

Image Removed

...

Info
titleImportant Options


Debugging

Debugging with curl

If you have trouble using check_http, you can start to query the URL with curl:

Code Block
languagebash
themeRDark
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
languagebash
themeRDark
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
languagebash
themeRDark
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
languagebash
themeRDark
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:

...

languagebash
themeRDark


...

Some important options

    • Address (name / IP or Proxy)  → If you need a proxy to access the domain
    • Virtual host → is necessary if you have multiple domains and one host running
    • How to handle redirect → How to handle redirected pages
    • Regular Expression to expect in content → 
    • HTTP Method → Set to CONNECT if you're using a proxy
    • Disable SSL/TLS hostname extension support (SNI)

      Image Added

Image Added



Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("check_http","http") and type = "page" and space = "KB"
labelshttp check_http

...