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

Step-by-step guide

...

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

Code Block
OMD[cme2]:~/lib/nagios/plugins$ ./check_http --help

...