Re: Check_http
Luciano Maia <[email protected]> Sun, 12 Jun 2011 12:43:07 -0300
| Newsgroups | gmane.network.nagios.user.brazil |
|---|---|
| Message-ID | <[email protected]> |
Se você não tiver a necessidade de autenticar com login e senha, pode tentar dessa forma: check_http -H $HOSTADDRESS$ -e HTTP/1.1 2011/6/11 Everton Pestana <[email protected]> > 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 > [email protected]* > * > > > > > 2011/6/7 Giovann Restani <[email protected]> > > > 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 > > -- > > [email protected] 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 > -- > [email protected] mailing list > https://lists.sourceforge.net/lists/listinfo/nagios-users-br > Wiki: http://nagios-br.sf.net/wiki > -- Att. Luciano Maia Cirilo http://www.nagiosnapratica.com.br LPIC-3 ------------------------------------------------------------------------------ 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 -- [email protected] mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki