Hi Scott,<br><br>The link you posted is a user-contributed patch for check_http, posted on the tracker on Jan 3rd 2012.<br>Nagios Plugins v. 1.4.15 were released in July 2010 so you can be sure that this patch has not made it into 1.4.15.<br>
<br>You have two options:<br>- Wait and hope that this patch will make it sometime into the branch and next version release (good luck with that)<br>- Re-compile check_http from source with the patch yourself<br><br><div class="gmail_quote">
On Thu, Feb 23, 2012 at 11:24 PM, Scott Ford <span dir="ltr"><<a href="mailto:sm_ford@yahoo.com">sm_ford@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="color:#000;background-color:#fff;font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>All,<br>
<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><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=3469275&group_id=29880&atid=397599" target="_blank">http://sourceforge.net/tracker/index.php?func=detail&aid=3469275&group_id=29880&atid=397599</a></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 <<a href="mailto:nagios@nagios.org" target="_blank">nagios@nagios.org</a>><br>
Copyright (c) 1999-2008 Nagios Plugin Development Team<br>    <<a href="mailto:nagiosplug-devel@lists.sourceforge.net" target="_blank">nagiosplug-devel@lists.sourceforge.net</a>><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: <a href="http://example.com:5000" target="_blank">example.com:5000</a>)<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 <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a> if you have questions<br>regarding use of this software. To submit patches or suggest improvements,<br>
send email to <a href="mailto:nagiosplug-devel@lists.sourceforge.net" target="_blank">nagiosplug-devel@lists.sourceforge.net</a><br><br></div></div></div><br>------------------------------------------------------------------------------<br>

Virtualization & Cloud Management Using Capacity Planning<br>
Cloud computing makes use of virtualization - but cloud computing<br>
also focuses on allowing computing to be delivered as a service.<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51521223/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51521223/</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>