Help on check_http to check a certain URL.
Andreas Ericsson
ae at op5.se
Thu Feb 24 21:28:45 CET 2005
Mukarram Syed wrote:
> Hi,
> I am trying to use Nagios plugin check_http to check a
> certain url.
>
> This works fine:
>
> # ./check_http www.yahoo.com
> HTTP ok: HTTP/1.1 200 OK - 0.213 second response
> time |time= 0.213
>
> But I am trying to check for SiteScope URL on an
> internal server.
>
> # ./check_http
> http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html
> Invalid host name
> 'http://10.0.2.100:8888/SiteScope/htdocs/Detailestore.html'
> Unable to open TCP socket
>
> and tried this...
>
> # ./check_http
> 10.0.2.100:8888/SiteScope/htdocs/Detailestore.html
> Invalid host name
> '10.0.2.100:8888/SiteScope/htdocs/Detailestore.html'
> Unable to open TCP socket
>
> I entered the hostname instead of the IP but same
> error.
>
> How else should I check this URL?
>
The option syntax of check_http is quite stupid, actually, since it
doesn't even try to interpret full URI's.
check_http -H 10.0.2.100 -p 8888 -u /SiteScope/htdocs/Detailestore.html
should do roughly what you want. If not, try check_http --help
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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