[Pkg-nagios-changes] [pkg-nagios-plugins] 64/413: fix return of check_jabber

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:06 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 4c542735582f9144404dab2145ec5da1b2e847eb
Author: Jan Wagner <waja at cyconet.org>
Date:   Wed Jan 31 08:15:29 2007 +0000

    fix return of check_jabber
---
 debian/changelog                                   |  2 ++
 debian/patches/00list                              |  1 +
 ...9_check_tcp.check_jabber-returns-warning.dpatch | 27 ++++++++++++++++++++++
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9addadf..f20e1de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ nagios-plugins (1.4.5-3) UNRELEASED; urgency=low
   * remove static community string in ifstatus.cfg
   * add 28_check_tcp.expect_reporting.dpatch to fix broken response for
     check_jabber
+  * add 29_check_tcp.check_jabber-returns-warning.dpatch to fix return of
+    check_jabber (closes: #392610).
 
  -- sean finney <seanius at copelandia.seanius.net>  Wed,  6 Dec 2006 23:47:12 +0100
 
diff --git a/debian/patches/00list b/debian/patches/00list
index ab22901..0d05ec7 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -8,3 +8,4 @@
 26_implicit-basename.dpatch
 27_check_radius_segfault.dpatch
 28_check_tcp.expect_reporting.dpatch
+29_check_tcp.check_jabber-returns-warning.dpatch
diff --git a/debian/patches/29_check_tcp.check_jabber-returns-warning.dpatch b/debian/patches/29_check_tcp.check_jabber-returns-warning.dpatch
new file mode 100644
index 0000000..af4c4c6
--- /dev/null
+++ b/debian/patches/29_check_tcp.check_jabber-returns-warning.dpatch
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 29_check_tcp.check_jabber-returns-warning.dpatch
+## Thomas Guyot-Sionnest <dermoth at aei.ca>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+Index: nagios-plugins-1.4.5/plugins/check_tcp.c
+===================================================================
+RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
+retrieving revision 1.84
+diff -u -r1.84 check_tcp.c
+--- nagios-plugins-1.4.5/plugins/check_tcp.c	30 Jan 2007 14:24:10 -0000	1.84
++++ nagios-plugins-1.4.5/plugins/check_tcp.c	31 Jan 2007 04:45:13 -0000
+@@ -166,9 +166,9 @@
+ 	}
+ 	else if (!strncmp(SERVICE, "JABBER", 6)) {
+ 		SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n";
+-		EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns:stream=\'http://etherx.jabber.org/streams\'";
++		EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'";
+ 		QUIT = "</stream:stream>\n";
+-		flags |= FLAG_SSL | FLAG_HIDE_OUTPUT;
++		flags |= FLAG_HIDE_OUTPUT;
+ 		PORT = 5222;
+ 	}
+ 	else if (!strncmp (SERVICE, "NNTPS", 5)) {

-- 
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