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::##::#
non standard HTTP check
Re: non standard HTTP check
you could try the plugin check_tcp.
Re: non standard HTTP check
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
thx
ad^2
Re: non standard HTTP check
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?
./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
The check_tcp line above produces "Connection refused".