check_http on image
Hugo van der Kooij
hvdkooij at vanderkooij.org
Sun Sep 10 22:23:11 CEST 2006
On Sun, 10 Sep 2006, Richard Galvez wrote:
> On a few servers I'm running tux web servers that only serve images
> (speeds up the process dramatically), and I'm trying to check this with
> nagios. I essentially need to do a check_http -H
> somedomain.com/someimage.jpg -w # -c ## .... I try doing this in nagios
> and I get a 'HTTP WARNING: HTTP/1.1 400 Bad Request' warning. If i check
> the url in firefox I see the image I expected to see. Any ideas?
You can't put a path in the -H option.
-H, --hostname=ADDRESS
Host name argument for servers using host headers (virtual host)
Append a port to include it in the header (eg: example.com:5000)
Use the proper option for your path.
-u, --url=PATH
URL to GET or POST (default: /)
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