Giovann,

Utilize da seguinte forma:

./check_http -I armyproxy.com -H 127.0.0.1

GET / HTTP/1.1
User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)
Connection: close
Host: 127.0.0.1


http://armyproxy.com:80/ is 433 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Date: Sat, 11 Jun 2011 05:40:10 GMT
Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5
mod_bwlimited/1.4 PHP/5.3.4
Last-Modified: Fri, 04 Mar 2011 01:49:16 GMT
ETag: "437001c-6f-49d9e5a867f00"
Accept-Ranges: bytes
Content-Length: 111
Connection: close
Content-Type: text/html
**** CONTENT ****
<html><head><META HTTP-EQUIV="refresh"
CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>

HTTP OK: HTTP/1.1 200 OK - 433 bytes em 0,452 segundos no tempo de reposta
|time=0,452118s;;;0,000000 size=433B;;;0


Caso você precise passar usuario e senha utilise a opção -b depois do
endereço do proxy.
-b, --proxy-authorization=AUTH_PAIR
     Usuário:senha em servidores proxy com autenticação básica

Espero que tenha ajudado.

Abs.




[image: Nagios] <http://www.nagios.org/>

 <http://www.globo.com/>
Everton Pestana
Monitorações | DataCenter
(21) 2125-2088
everton.ta...@corp.globo.com*
*




2011/6/7 Giovann Restani <giovann.rest...@gmail.com>

> Pessoal estou precisando monitorar uma url, so que esta requer autenticação
> de proxy.
>
> o comando me retorna este erro
>
> HTTP WARNING: HTTP/1.1 400 Bad Request - 168 bytes in 0.008 second response
> time |time=0.008293s;;;0.000000 size=168B;;;0
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> --
> Nagios-users-br@lists.sourceforge.net mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Responder a