check+http on asp.net site

Hugo van der Kooij hvdkooij at vanderkooij.org
Tue Aug 8 21:03:35 CEST 2006


On Tue, 8 Aug 2006, Marco Borsani wrote:

> Have you ever checked an asp.net site with check_http 1.24.2.4 ?
>
> I receive following error message:
> HTTP WARNING: HTTP/1.1 404 Object Not Found
>
> If I perform a check_tcp on 80 port I will receive an OK .

I do not think it is asp.net specific. It is site/server specific and my
bet is that you need to define the host to use in your request.

Just try it with a telnet to website port 80 and type:

GET / HTTP/1.0<enter>
<enter>

Then try again with the hostname you have to use in the URL for this site:

GET / HTTP/1.0<enter>
Host: yourhost.domain<enter>
<enter>

Make sure to send the CR/LF string where I said <enter> and replace
yourhost.domain with the proper hostname.

Please consult your HTTP RFC for more elaborate details.

check_tcp does just that. Do the 3 way handshake to see it is a valid TCP
port and leave.

Protocol knowledge is your friend here.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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