check_http oddness

Janet Sullivan jsullivan at mndigital.com
Mon Jun 1 19:45:31 CEST 2009


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=XXX&apswd=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>
  .<level>status</level>
  .<code>NetConnection.Call.Success</code>
  .<timestamp>Mon 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=XXX&apaswd=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>
  .<level>error</level>
  .<code>NetConnection.Connect.Rejected</code>
  .<description>Administrator login failed for user untrust.</description>
  .<timestamp>Mon 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 * jsullivan at 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 at 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





More information about the Users mailing list