non standard HTTP check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
adsquared
Posts: 3
Joined: Mon Jun 28, 2010 8:48 pm

non standard HTTP check

Post 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::##::#
danlock2
Posts: 2
Joined: Thu Jun 24, 2010 10:18 am

Re: non standard HTTP check

Post by danlock2 »

you could try the plugin check_tcp.
adsquared
Posts: 3
Joined: Mon Jun 28, 2010 8:48 pm

Re: non standard HTTP check

Post 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
danlock2
Posts: 2
Joined: Thu Jun 24, 2010 10:18 am

Re: non standard HTTP check

Post 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?
adsquared
Posts: 3
Joined: Mon Jun 28, 2010 8:48 pm

Re: non standard HTTP check

Post by adsquared »

The check_tcp line above produces "Connection refused".
Locked