Page 1 of 1

non standard HTTP check

Posted: Mon Jun 28, 2010 9:13 pm
by adsquared
Hello,

I could use some advice on monitoring a non-standard HTTP web service. The server listens on port 80 as usual and accepts a regular GET request. However, the only response is something like text/plain Code::##::#. There is no HTTP error code, content length, etc. I can test the connection manually using Telnet but I want to automate the test.

These are the responses I receive. Is there another parameter I can use? Thx.

/check_http -H <IP> -p 80 -s 'GET /?v=12&j=12&b=nm40&h=333333333333333333333333cn=000004560000000 HTTP/1.1'

HTTP CRITICAL - No data received from host

/check_http -H <IP> -p 80 -u 'GET /?v=12&j=12&b=nm40&h=333333333333333333333333cn=000004560000000 HTTP/1.1'

CRITICAL - Socket timeout after 10 seconds

[Working]
telnet IP 80
Trying IP...
Connected to IP.
Escape character is '^]'.
GET /?v=12&j=12&b=nm40&h=333333333333333333333333cn=000004560000000 HTTP/1.1

text/plain

Code::##::#

Re: non standard HTTP check

Posted: Tue Jun 29, 2010 11:45 am
by danlock2
you could try the plugin check_tcp.

Re: non standard HTTP check

Posted: Tue Jun 29, 2010 12:35 pm
by adsquared
Yes. I tried that as well - false positive. TCP will display an OK message. I'm guessing the three way handshake is completed and stops there.

thx

ad^2

Re: non standard HTTP check

Posted: Tue Jun 29, 2010 1:27 pm
by danlock2
so something like
./check_tcp -s "GET /?v=12&j=12&b=nm40&h=333333333333333333333333cn=000004560000000 HTTP/1.1" -e "text/plain\n\nCode::##::#"
doesn't work?

Re: non standard HTTP check

Posted: Tue Jun 29, 2010 3:30 pm
by adsquared
The check_tcp line above produces "Connection refused".