[Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http
SourceForge.net
noreply at sourceforge.net
Sat May 3 13:11:05 CEST 2003
Feature Requests item #731555, was opened at 2003-05-02 14:30
Message generated for change (Comment added) made by nriley
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: Nicholas Riley (nriley)
Date: 2003-05-03 15:10
Message:
Logged In: YES
user_id=34933
AFAIK, POST data would not answer my example. The headers
need to be sent before the CR-LF-CR-LF after which POST data
is sent.
I can't use check_tcp because I'm connecting via SSL. (Sorry
that wasn't in my example; I was attempting to simplify it
for the purpose of the example). check_tcp would probably
work if I weren't connecting via SSL, but it'd be cumbersome
to have to embed the HTTP request-response in a shell script
or .cfg file.
----------------------------------------------------------------------
Comment By: Karl DeBisschop (kdebisschop)
Date: 2003-05-03 06: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 18:32
Message:
Logged In: YES
user_id=34933
OK, here you go.
----------------------------------------------------------------------
Comment By: Subhendu Ghosh (sghosh)
Date: 2003-05-02 15: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