Package: nagios-plugins Version: 1.4.12-2 Severity: normal Tags: patch Our http frontend doesn't like URLs with default http port (line www.tcen.ru:80)
Please add attached patch for check_http.c -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages nagios-plugins depends on: ii nagios-plugins-basic 1.4.12-2 Plugins for the nagios network mon ii nagios-plugins-standard 1.4.12-2 Plugins for the nagios network mon nagios-plugins recommends no packages. Versions of packages nagios-plugins suggests: ii nagios3 3.0.3-2 A host/service/network monitoring -- no debconf information
--- ../nagios-plugins-1.4.12.before/plugins/check_http.c 2008-05-07 14:02:42.000000000 +0400 +++ plugins/check_http.c 2008-08-12 18:31:35.000000000 +0400 @@ -753,7 +753,11 @@ /* optionally send the host header info */ if (host_name) - asprintf (&buf, "%sHost: %s:%d\r\n", buf, host_name, server_port); + /* don't send default http port */ + if (server_port == HTTP_PORT) + asprintf (&buf, "%sHost: %s\r\n", buf, host_name); + else + asprintf (&buf, "%sHost: %s:%d\r\n", buf, host_name, server_port); /* optionally send any other header tag */ if (http_opt_headers_count) {