R: check+http on asp.net site

Marc Powell marc at ena.com
Wed Aug 9 15:16:14 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Marco Borsani
> Sent: Wednesday, August 09, 2006 2:46 AM
> To: 'Nagios Users Mailinglist'
> Subject: [Nagios-users] R: check+http on asp.net site
> 
> 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?

Looks like you need to add '-H <ip>' to your check_http command to have
it tell the web server which vhost you want to query.

--
Marc

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