[Pkg-nagios-changes] [pkg-nagios] r1991 - in nagios-plugins/trunk/debian: . patches
Jan Wagner
waja at alioth.debian.org
Tue Feb 21 14:04:34 UTC 2012
tags 654682 pending
thanks
Author: waja
Date: 2012-02-21 14:04:16 +0000 (Tue, 21 Feb 2012)
New Revision: 1991
Added:
nagios-plugins/trunk/debian/patches/17_check_smtp_fix_duplicate_cert_message.dpatch
nagios-plugins/trunk/debian/patches/17_check_tcp_fix_duplicate_cert_message.dpatch
Modified:
nagios-plugins/trunk/debian/changelog
Log:
check_tcp and check_smtp: fixing duplicate messages at cert errors
Modified: nagios-plugins/trunk/debian/changelog
===================================================================
--- nagios-plugins/trunk/debian/changelog 2012-02-19 12:45:35 UTC (rev 1990)
+++ nagios-plugins/trunk/debian/changelog 2012-02-21 14:04:16 UTC (rev 1991)
@@ -4,6 +4,10 @@
* Add '-w %d' as ping argument for check_ping on non-linux plattforms, as
inetutils-ping is now supporting this, thanks Guillem Jover for bringing
this up (Closes: #655023)
+ * Adding 17_check_smtp_fix_duplicate_cert_message.dpatch and
+ 17_check_tcp_fix_duplicate_cert_message.dpatch (Closes: #654682), to fix
+ duplicate messages when certificate errors occures, thanks Sebastian Harl
+ for reporting
-- Jan Wagner <waja at cyconet.org> Wed, 07 Sep 2011 15:33:55 +0200
Added: nagios-plugins/trunk/debian/patches/17_check_smtp_fix_duplicate_cert_message.dpatch
===================================================================
--- nagios-plugins/trunk/debian/patches/17_check_smtp_fix_duplicate_cert_message.dpatch (rev 0)
+++ nagios-plugins/trunk/debian/patches/17_check_smtp_fix_duplicate_cert_message.dpatch 2012-02-21 14:04:16 UTC (rev 1991)
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 17_check_smtp_fix_duplicate_cert_message.dpatch
+## From 4d06603060fc1233861b164870f0d3a2e0d8d2eb Fri, 15 Jul 2011 20:19:15 +0000 (+0100)
+## From: Ton Voon <ton.voon at opsera.com>
+## Date: Tue, 6 Sep 2011 23:20:21 -0400
+## Subject: [PATCH] Fix check_smtp and check_tcp where duplicate messages were displayed for certificate...
+## X-Git-Url: http://nagiosplug.git.sourceforge.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commitdiff_plain;h=4d06603060fc1233861b164870f0d3a2e0d8d2eb
+##
+## DP: Fix check_smtp where duplicate messages were displayed for certificate errors
+
+ at DPATCH@
+
+--- a/plugins/check_smtp.c
++++ b/plugins/check_smtp.c
+@@ -276,9 +276,6 @@ main (int argc, char **argv)
+ # ifdef USE_OPENSSL
+ if ( check_cert ) {
+ result = np_net_ssl_check_cert(days_till_exp);
+- if(result != STATE_OK){
+- printf ("%s\n", _("CRITICAL - Cannot retrieve server certificate."));
+- }
+ my_close();
+ return result;
+ }
Added: nagios-plugins/trunk/debian/patches/17_check_tcp_fix_duplicate_cert_message.dpatch
===================================================================
--- nagios-plugins/trunk/debian/patches/17_check_tcp_fix_duplicate_cert_message.dpatch (rev 0)
+++ nagios-plugins/trunk/debian/patches/17_check_tcp_fix_duplicate_cert_message.dpatch 2012-02-21 14:04:16 UTC (rev 1991)
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 17_check_tcp_fix_duplicate_cert_message.dpatch
+## From 4d06603060fc1233861b164870f0d3a2e0d8d2eb Fri, 15 Jul 2011 20:19:15 +0000 (+0100)
+## From: Ton Voon <ton.voon at opsera.com>
+## Date: Tue, 6 Sep 2011 23:20:21 -0400
+## Subject: [PATCH] Fix check_smtp and check_tcp where duplicate messages were displayed for certificate...
+## X-Git-Url: http://nagiosplug.git.sourceforge.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commitdiff_plain;h=4d06603060fc1233861b164870f0d3a2e0d8d2eb
+##
+## DP: Fix check_tcp where duplicate messages were displayed for certificate errors
+
+ at DPATCH@
+
+--- a/plugins/check_tcp.c
++++ b/plugins/check_tcp.c
+@@ -236,12 +236,9 @@ main (int argc, char **argv)
+ result = np_net_ssl_init(sd);
+ if (result == STATE_OK && check_cert == TRUE) {
+ result = np_net_ssl_check_cert(days_till_exp);
+- if(result != STATE_OK) {
+- printf(_("CRITICAL - Cannot retrieve server certificate.\n"));
+- }
+ }
+ }
+- if(result != STATE_OK){
++ if(result != STATE_OK || check_cert == TRUE){
+ np_net_ssl_cleanup();
+ if(sd) close(sd);
+ return result;
More information about the Pkg-nagios-changes
mailing list