Non standard HTTP check

non standard HTTP check

Postby adsquared » Mon Jun 28, 2010 9:13 pm
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 -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 -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::##::#

check_tcp with -s and -e options?

Yes I tried and it produces “Connection refused”.

on a web server it shouldn’t say connection refused… if the port is the right one it has to work, or the web server isn’t running :slight_smile:

luca@jake:~$ /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 -p 80
TCP OK - 0.000 second response time on port 80|time=0.000151s;;;0.000000;10.000000