R: check+http on asp.net site

Greg Cope greg.cope at e-dba.net
Wed Aug 9 09:54:32 CEST 2006


Nothing wrong with the web server.

It is either not configured properly, or you are asking for the wrong
url.

Do you know what Virtual Hosts are configured?  If you try telneting and
doing an HTTP/1.1 request. 

Greg



On Wed, 2006-08-09 at 09:46 +0200, Marco Borsani wrote:
> Well
> 
> Here it is the answers:
> ================================================
> Telnet <ip> 80
> ......
> GET / HTTP/1.0
> 
> HTTP/1.1 404 Object Not Found
> Server: Microsoft-IIS/5.0
> Date: Wed, 09 Aug 2006 07:39:56 GMT
> Content-Type: text/html
> Content-Length: 111
> 
> <html><head><title>Site Not Found</title></head>
> <body>No web site is configured at this address.</body></html>Connection
> closed by foreign host. 
> ================================================
> Telnet <ip> 80
> ......
> GET / HTTP/1.0
> Host: <ip>
> 
> HTTP/1.1 302 Found
> Server: Microsoft-IIS/5.0
> Date: Wed, 09 Aug 2006 07:42:33 GMT
> X-Powered-By: ASP.NET
> X-AspNet-Version: 1.1.4322
> Location: http://<ip>/DesktopDefault.aspx
> Set-Cookie: ASP.NET_SessionId=24d3ktjs24micn45v04rxj45; path=/
> Cache-Control: private
> Content-Type: text/html; charset=utf-8
> Content-Length: 155
> 
> <html><head><title>Object moved</title></head><body>
> <h2>Object moved to <a href='http://<ip>/DesktopDefault.aspx'>here</a>.</h2>
> </body></html>
> Connection closed by foreign host.
> ===================================================
> 
> When I perform check_http I but url /DesktopDefault.aspx , but I still did
> not receive the OK answer; always "HTTP WARNING: HTTP/1.1 404 Object Not
> Found"
> 
> Any idea?
> Regards
> 
> Marco
> 
> -}-----Messaggio originale-----
> -}Da: nagios-users-bounces at lists.sourceforge.net 
> -}[mailto:nagios-users-bounces at lists.sourceforge.net] Per conto 
> -}di Hugo van der Kooij
> -}Inviato: martedì 8 agosto 2006 21.04
> -}A: Nagios Users Mailinglist
> -}Oggetto: Re: [Nagios-users] check+http on asp.net site
> -}
> -}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
> -}
> 
> 
> -------------------------------------------------------------------------
> 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
-- 
Greg Cope
Systems Administrator

e-DBA Ltd.
37 Ship Street, Brighton, E.S. BN1 1AB
Office Phone:  0870 366 7800
Direct Phone:  0870 366 9900, ext 306
greg.cope at e-dba.com
www.e-dba.com


-------------------------------------------------------------------------
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