[Pkg-nagios-changes] [pkg-nagios-plugins] 148/413: add status_line to check_http output

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:17 UTC 2013


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-plugins.

commit ac38a0f73af2c8eba844bf6d7c91c7dffa35e4f2
Author: Jan Wagner <waja at cyconet.org>
Date:   Thu Jun 19 14:06:58 2008 +0000

    add status_line to check_http output
---
 debian/changelog                               |  7 +++++++
 debian/patches/40_check_http_status_line.patch | 25 +++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7f3c18d..7691196 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+nagios-plugins (1.4.12-2) UNRELEASED; urgency=low
+
+  * add 40_check_http_status_line.dpatch to add content of the status_line
+    into the check_http output (Closes: #486932)
+
+ -- Jan Wagner <waja at cyconet.org>  Wed, 18 Jun 2008 13:53:00 +0200
+
 nagios-plugins (1.4.12-1) unstable; urgency=low
 
   [ Jan Wagner ]
diff --git a/debian/patches/40_check_http_status_line.patch b/debian/patches/40_check_http_status_line.patch
new file mode 100644
index 0000000..d06f14a
--- /dev/null
+++ b/debian/patches/40_check_http_status_line.patch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 40_check_http_status_line.dpatch by Jan Wagner <waja at cyconet.org>
+## patch provided by Josip Rodin <joy at debbugs.entuzijast.net>
+##
+## DP: adds status_line to check_http output
+
+ at DPATCH@
+--- check_http.c~	2008-06-19 11:42:25.000000000 +0200
++++ check_http.c	2008-06-19 11:42:25.000000000 +0200
+@@ -912,11 +912,12 @@
+   if (!strstr (status_line, server_expect)) {
+     if (server_port == HTTP_PORT)
+       asprintf (&msg,
+-                _("Invalid HTTP response received from host\n"));
++                _("Invalid HTTP response received from host: %s\n"),
++                status_line);
+     else
+       asprintf (&msg,
+-                _("Invalid HTTP response received from host on port %d\n"),
+-                server_port);
++                _("Invalid HTTP response received from host on port %d: %s\n"),
++                server_port, status_line);
+     die (STATE_CRITICAL, "%s", msg);
+   }
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git



More information about the Pkg-nagios-changes mailing list