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.

...

Step-by-step guide

  1. Configure the Check
    1. Setup → Services → HTTP, TCP, Email, ... → Check  → Check HTTP service

  2. Some important options
    • Virtual host → is necessary if you have multiple domains and one host running
    • Use
    proxy →
    • proxy → If you need a proxy to access the domain
    • How to handle
    redirect →
    • redirect How to handle redirected pages
    • HTTP
    Method →
    • Method Set to CONNECT if you're using a proxy
    • Disable SNI

      Image Modified

      Image Modified

Debugging

Execute the active Check manually

...

Code Block
languagebash
themeRDark
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
languagebash
themeRDark
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
languagebash
themeRDark
OMD[cme2]:~/lib/nagios/plugins$ ./check_http --help

...