[Pkg-nagios-devel] Bug#486932: check_http -e error only says "Invalid HTTP response received from host"

Josip Rodin joy at debbugs.entuzijast.net
Thu Jun 19 01:14:15 UTC 2008


Package: nagios-plugins-basic
Version: 1.4.5-1etch1

Hi,

This is basically the same thing as #467493. Rather than stating what it
got, the script just barfs generically. The code says:

  if (!strstr (status_line, server_expect)) {
    if (server_port == HTTP_PORT)
      asprintf (&msg,
                _("Invalid HTTP response received from host\n"));
    else 
      asprintf (&msg,
                _("Invalid HTTP response received from host on port %d\n"),
                server_port);
    die (STATE_CRITICAL, "HTTP CRITICAL - %s", msg);
  }

It should add the contents of the status_line (as %s) into the output (msg).

Oddly enough, the script actually does this pretty consistently in the lines
below, only in these two cases does it fail to mention the actual status
line.

Please fix this. TIA.

-- 
     2. That which causes joy or happiness.





More information about the Pkg-nagios-devel mailing list