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

SourceForge.net noreply at sourceforge.net
Wed Jan 4 02:13:06 CET 2012


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 (mockbuild at ca-build9.us.oracle.com) (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




More information about the Devel mailing list