[Pkg-nagios-devel] Bug#494835: Bug#494835: nagios-plugins: check_http add default http port to URL
brian at tecnobrat.com
Mon May 25 23:46:13 UTC 2009
On Mon, May 25, 2009 at 4:00 PM, Jan Wagner <waja at cyconet.org> wrote:
> Hi there,
> $ /usr/lib/nagios/plugins/check_http -H www.tcen.ru -I www.tcen.ru
> HTTP OK HTTP/1.1 200 OK - 5974 bytes in 0,778 seconds |
> time=0,778018s;;;0,000000 size=5974B;;;0
> $ dpkg -l | grep nagios-plugins-basic
> ii nagios-plugins-basic 1.4.12-5 Plugins for
> the nagios network monitoring an
> Actually I didn't got, what the problem exactly is. Maybe anybody can come
> around with much better examples/configs so that I can reproduce the issue.
> Thanks and with kind regards, Jan.
> Never write mail to <waja at spamfalle.info>, you have been warned!
The problem is that some webservers are configured so that
www1.wowhead.com and www1.wowhead.com:80 are different virtual hosts.
As you can see if you test with both of the hostnames I just provided,
www1.wowhead.com returns a 200 code. Where as www1.wowhead.com:80
does a 302 redirect to www.wowhead.com instead of giving you a 200
By default, the plugin automatically adds the header:
Ideally it would be nice to be able to provide a flag to not include
the port number in the host.
More information about the Pkg-nagios-devel