Re: [Nagios-users] check_http oddness

2009-06-02 Thread Holger Weiss
* Janet Sullivan jsulli...@mndigital.com [2009-06-01 10:45]:
 Check_http reports a timeout, however, a packet capture shows that
 data was in fact received.

 Data Sent:

   GET /admin/ping?auser=XXXapaswd=XXX HTTP/1.0
   User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
   Connection: close

 Data Received:

   HTTP/1.0 200 OK
   Connection: Keep-Alive

While the plugin expects the server to close the connection after
sending the response, the server initiates a HTTP/1.0-style persistent
connection.  The plugin doesn't handle this properly and awaits more
data until it runs into the timeout.

Could you check whether you can reproduce the problem using the current
snapshot and the -H option (in which case the plugin should request an
HTTP/1.1 connection)?  See:

http://nagiosplug.sourceforge.net/snapshot/

Thanks, Holger

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_http oddness

2009-06-01 Thread Janet Sullivan
I'm having an interesting problem with check_http.  It's popping off a critical 
alert after timing out, but a packet capture on the box running check_http 
shows that the server did return data - for some reason check_http just isn't 
showing it, even when I use -v from the command line.This is against a 
FlashCom/3.04 server (Flash Streaming).

Here's an example capture from curl (user name  password XXX'd out):

Command:

  Curl http://tkfstrm06:8080/admin/ping?auser=XXX\apswd=XXX

Sent:

  GET /admin/ping?auser=XXXapswd=XXX HTTP/1.1
  User-Agent: curl/7.19.5 (amd64-portbld-freebsd7.2) libcurl/7.19.5 
OpenSSL/0.9.8e zlib/1.2.3 c-ares/1.4.0  libssh2/1.1
  Host: tkfstrm06:8080
  Accept: */*

Received:

  HTTP/1.1 200 OK
  Connection: Keep-Alive
  Content-Length: 178
  Content-Type: application/xml
  Cache-Control: no-cache
  Server: FlashCom/3.0.4

  ?xml version=1.0 encoding=utf-8?
  result
  .levelstatus/level
  .codeNetConnection.Call.Success/code
  .timestampMon 01 Jun 2009 10:15:30 AM PDT/timestamp
  /result

And now check_http.

Command used:

  ./check_http -I tkfstrm06 -p 8080 -u /admin/ping?auser=XXX\apaswd=XXX -v

Check_http reports a timeout, however, a packet capture shows that data was in 
fact received.

Data Sent:

  GET /admin/ping?auser=XXXapaswd=XXX HTTP/1.0
  User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
  Connection: close

Data Received:

  HTTP/1.0 200 OK
  Connection: Keep-Alive
  Content-Length: 254
  Content-Type: application/xml
  Pragma: no-cache
  Cache-Control: no-cache
  Server: FlashCom/3.0.4

  ?xml version=1.0 encoding=utf-8?
  result
  .levelerror/level
  .codeNetConnection.Connect.Rejected/code
  .descriptionAdministrator login failed for user untrust./description
  .timestampMon 01 Jun 2009 10:15:35 AM PDT/timestamp
  /result
   
I'm at a loss here.  I've tried using -H instead of -I, and I've tried matching 
the headers as best as I can, but the same problem persists.  Check_http still 
doesn't show that its getting any data back to its query... but I know from 
tcpdump that it is, and quickly.  Any suggestions?  Check_http does work 
against other sites from this box, but seems to have this problem against any 
Flash server I try.  Since ie, firefox, curl, wget, and lynx all work against 
these flash servers, it makes me think something is odd with check_http.



Janet Sullivan, Sr. Network Engineer
MusicNet, Inc. d/b/a MediaNet Digital, Inc.
2401 Elliott Avenue, Suite 300  Seattle, WA  98121
T (206) 269-6020 * F (206) 269-6100 * jsulli...@mndigital.com


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http oddness

2009-06-01 Thread Ricardo Maraschini
Hi,

- Janet Sullivan jsulli...@mndigital.com escreveu:
 Command:
 
   Curl http://tkfstrm06:8080/admin/ping?auser=XXX\apswd=XXX
 
   ./check_http -I tkfstrm06 -p 8080 -u
 /admin/ping?auser=XXX\apaswd=XXX -v
 

There's a difference in GET var apaswd between your tries.
On former URL you used apswd, and on the second you use apaswd.
Which is the correct one?

-rm

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null