<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span style="font-size: 10pt; ">All,</span><br></div><div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div id="yiv1535366477"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: verdana, helvetica, sans-serif; "><div>
<br>
I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge 
that showed the latest version of check_http included an option for 
regular expression searches in the header of the file.  That option does
 not seem to be available.  Can anyone shed some light on this?  This is
 the post I read...</div><div><br></div><div>http://sourceforge.net/tracker/index.php?func=detail&aid=3469275&group_id=29880&atid=397599</div><div><br></div><div>Thank you in advance,</div><div><br></div><div>Scott</div><div><br></div><div>----</div><div><br></div><div>[sforddev plugins]# ./check_http --help<br>check_http v1.4.15 (nagios-plugins 1.4.15)<br>Copyright (c) 1999 Ethan Galstad <nagios@nagios.org><br>Copyright (c) 1999-2008 Nagios Plugin Development Team<br>    <nagiosplug-devel@lists.sourceforge.net><br><br>This plugin tests the HTTP service on the specified host. It can test<br>normal (http) and secure (https) servers, follow redirects, search for<br>strings and regular expressions, check connection times, and report on<br>certificate expiration times.<br><br><br>Usage:<br> check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]<br>      
 [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-a auth]<br>       [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]<br>       [-e <expect>] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]<br>       [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]<br>       [-A string] [-k string] [-S] [--sni] [-C <age>] [-T <content-type>]<br>       [-j method]<br>NOTE: One or both of -H and -I must be specified<br><br>Options:<br> -h, --help<br>    Print detailed help screen<br> -V, --version<br>    Print version information<br> -H, --hostname=ADDRESS<br>    Host name argument for servers using host headers (virtual
 host)<br>    Append a port to include it in the header (eg: example.com:5000)<br> -I, --IP-address=ADDRESS<br>    IP address or name (use numeric address if possible to bypass DNS lookup).<br> -p, --port=INTEGER<br>    Port number (default: 80)<br> -4, --use-ipv4<br>    Use IPv4 connection<br> -6, --use-ipv6<br>    Use IPv6 connection<br> -e, --expect=STRING<br>    Comma-delimited list of strings, at least one of them is expected in<br>    the first (status) line of the server response (default: HTTP/1.)<br>    If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)<br> -s, --string=STRING<br>    String to expect in the content<br> -u, --url=PATH<br>    URL to GET or POST (default: /)<br> -P, --post=STRING<br>    URL encoded http
 POST data<br> -j, --method=STRING  (for example: HEAD, OPTIONS, TRACE, PUT, DELETE)<br>    Set HTTP method.<br> -N, --no-body<br>    Don't wait for document body: stop reading after headers.<br>    (Note that this still does an HTTP GET or POST, not a HEAD.)<br> -M, --max-age=SECONDS<br>    Warn if document is more than SECONDS old. the number can also be of<br>    the form "10m" for minutes, "10h" for hours, or "10d" for days.<br> -T, --content-type=STRING<br>    specify Content-Type header media type when POSTing<br><br> -l, --linespan<br>    Allow regex to span newlines (must precede -r or -R)<br> -r, --regex, --ereg=STRING<br>    Search page for regex STRING<br> -R, --eregi=STRING<br>    Search page for case-insensitive regex STRING<br> --invert-regex<br>   
 Return CRITICAL if found, OK if not<br><br> -a, --authorization=AUTH_PAIR<br>    Username:password on sites with basic authentication<br> -b, --proxy-authorization=AUTH_PAIR<br>     Username:password on proxy-servers with basic authentication<br> -A, --useragent=STRING<br>    String to be sent in http header as "User Agent"<br> -k, --header=STRING<br>     Any other tags to be sent in http header. Use multiple times for additional headers<br> -L, --link<br>    Wrap output in HTML link (obsoleted by urlize)<br> -f, --onredirect=<ok|warning|critical|follow|sticky|stickyport><br>    How to handle redirected pages. sticky is like follow but stick to the<br>    specified IP address. stickyport also ensure post stays the same.<br> -m, --pagesize=INTEGER<:INTEGER><br>    Minimum page
 size required (bytes) : Maximum page size required (bytes)<br> -w, --warning=DOUBLE<br>    Response time to result in warning status (seconds)<br> -c, --critical=DOUBLE<br>    Response time to result in critical status (seconds)<br> -t, --timeout=INTEGER<br>    Seconds before connection times out (default: 10)<br> -v, --verbose<br>    Show details for command-line debugging (Nagios may truncate output)<br><br>Notes:<br> This plugin will attempt to open an HTTP connection with the host.<br> Successful connects return STATE_OK, refusals and timeouts return STATE_CRITICAL<br> other errors return STATE_UNKNOWN.  Successful connects, but incorrect reponse<br> messages from the host result in STATE_WARNING return values.  If you are<br> checking a virtual server that uses 'host headers' you must supply the FQDN<br> (fully qualified domain
 name) as the [host_name] argument.<br><br>Send email to nagios-users@lists.sourceforge.net if you have questions<br>regarding use of this software. To submit patches or suggest improvements,<br>send email to nagiosplug-devel@lists.sourceforge.net<br><br></div></div></div></div><br><br> </div> </div>  </div></body></html>