Bug in Nagios check_http plugin before 1.4.14 with 301/302 HTTP redirects
There is a nasty bug in the Nagios check_http plugin before version 1.4.14 whereby the leading slash (/) of the URI paramter is left off of the string when encountering a 301 or 302 redirect. This can lead to errors such as:
HTTP WARNING - redirection creates an infinite loop
or others regarding HTTP redirection that is more than 15 levels deep (if you compiled with the default value). From the changelog:
2008-09-01 Holger Weiss* plugins/check_http.c: Under some circumstances, the 'url' path of a redirection target missed a leading slash. While this was fixed later on, the incomplete 'url' was used for redirection loop detection and error messages. This is now fixed by adding the missing slash immediately. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2049 f882894a-f735-0410-b71e-b25c423dba1c
Here is the full changelog.

