Versions Compared

Key

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


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.

...

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

...

The service check returns OK

Image RemovedImage Added


Running the command by hand can help debug issues as well.

...