[ nagiosplug-Patches-3469275 ] Add regex for header checks in check_http

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Patches item #3469275, was opened at 2012-01-03 17:12
Message generated for change (Settings changed) made by bmirvine
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3469275&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
>Group: release-1.4.15
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bryan Irvine (bmirvine)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add regex for header checks in check_http

Initial Comment:
I needed to be able to look for a specific string within the header itself.

check_http v1.4.15 (nagios-plugins 1.4.15)
./check_http <ip removed>  -d 'X-Organization: N'
HTTP OK: HTTP/1.0 200 OK - 371 bytes in 0.047 second response time |time=0.047279s;;;0.000000 size=371B;;;0

./check_http <ip removed>  -d 'X-Organization: N1'
HTTP CRITICAL: HTTP/1.0 200 OK - header 'X-Organization: N1' not found on 'http://<ip removed>:80/' - 371 bytes in 0.049 second response time |time=0.049446s;;;0.000000 size=371B;;;0

Tested on 64-bit Oracle Enterprise Linux
Linux version 2.6.18-194.17.1.0.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Sep 29 15:57:39 EDT 2010
Command line: ro root=LABEL=/


 gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3469275&group_id=29880

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.