[Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http

SourceForge.net noreply at sourceforge.net
Sat May 3 04:18:12 CEST 2003


Feature Requests item #731555, was opened at 2003-05-02 15:30
Message generated for change (Comment added) made by kdebisschop
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Nicholas Riley (nriley)
Assigned to: Nobody/Anonymous (nobody)
Summary: arbitrary headers in check_http

Initial Comment:
For some servers I monitor, a normal HTTP request will
not succeed; it's necessary to add a particular HTTP
header to get it to work. I've modified my copy of
check_http to send this header, but it would be easier
if it provided an option similar to wget's --header, to
send an arbitrary header. It would look something like
this:

check_http -I my.broken.server -h 'Foo: Bar'

and check_http would send:

GET / HTTP/1.0
Host: my.broken.server
User-Agent: check_http...
Foo: Bar

This seems simple enough that I'm not sure it's worth
the trouble to submit a patch, but if you want one, let
me know.

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

>Comment By: Karl DeBisschop (kdebisschop)
Date: 2003-05-03 07:15

Message:
Logged In: YES 
user_id=1671

You can submit POST data, which would answer your example.

You could also use check_tcp.

Are you sure you can't do what you want with the existing code?

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

Comment By: Nicholas Riley (nriley)
Date: 2003-05-02 19:32

Message:
Logged In: YES 
user_id=34933

OK, here you go.

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

Comment By: Subhendu Ghosh (sghosh)
Date: 2003-05-02 16:18

Message:
Logged In: YES 
user_id=46572

patches always help speed up the process.

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

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




More information about the Devel mailing list