let the patch apply

This commit is contained in:
Jan Wagner 2008-08-23 13:41:17 +00:00
parent 508f0a350e
commit 5182895704
2 changed files with 6 additions and 4 deletions

1
debian/changelog vendored
View file

@ -1,6 +1,7 @@
nagios-plugins (1.4.12-3) UNRELEASED; urgency=low nagios-plugins (1.4.12-3) UNRELEASED; urgency=low
* rename 40_check_http_status_line.patch to 40_check_http_status_line.dpatch * rename 40_check_http_status_line.patch to 40_check_http_status_line.dpatch
and make it able to apply
* add 40_check_http_status_line.dpatch to 00list to really fix #486932 * add 40_check_http_status_line.dpatch to 00list to really fix #486932
-- Jan Wagner <waja@cyconet.org> Fri, 04 Jul 2008 17:04:02 +0200 -- Jan Wagner <waja@cyconet.org> Fri, 04 Jul 2008 17:04:02 +0200

View file

@ -5,9 +5,10 @@
## DP: adds status_line to check_http output ## DP: adds status_line to check_http output
@DPATCH@ @DPATCH@
--- check_http.c~ 2008-06-19 11:42:25.000000000 +0200 diff -urNad nagios-plugins-1.4.12~/plugins/check_http.c nagios-plugins-1.4.12/plugins/check_http.c
+++ check_http.c 2008-06-19 11:42:25.000000000 +0200 --- nagios-plugins-1.4.12~/plugins/check_http.c 2008-08-23 15:34:17.000000000 +0200
@@ -912,11 +912,12 @@ +++ nagios-plugins-1.4.12/plugins/check_http.c 2008-08-23 15:36:20.000000000 +0200
@@ -879,11 +879,12 @@
if (!strstr (status_line, server_expect)) { if (!strstr (status_line, server_expect)) {
if (server_port == HTTP_PORT) if (server_port == HTTP_PORT)
asprintf (&msg, asprintf (&msg,
@ -20,6 +21,6 @@
- server_port); - server_port);
+ _("Invalid HTTP response received from host on port %d: %s\n"), + _("Invalid HTTP response received from host on port %d: %s\n"),
+ server_port, status_line); + server_port, status_line);
die (STATE_CRITICAL, "%s", msg); die (STATE_CRITICAL, "HTTP CRITICAL - %s", msg);
} }