summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--plugins/check_smtp.c3
-rw-r--r--plugins/check_tcp.c5
3 files changed, 2 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 9ff8755..fd9b8e8 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ This file documents the major additions and syntax changes between releases.
16 Fix check_ldap overriding the port when --ssl was specified after -p 16 Fix check_ldap overriding the port when --ssl was specified after -p
17 Fix check_procs where regex input of '|' would get displayed in output - now replaced with ',' 17 Fix check_procs where regex input of '|' would get displayed in output - now replaced with ','
18 Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl) 18 Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl)
19 Fix check_smtp and check_tcp where duplicate messages were displayed for certificate errors
19 20
201.4.15 27th July 2010 211.4.15 27th July 2010
21 ENHANCEMENTS 22 ENHANCEMENTS
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 6c5994c..494bc2c 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -276,9 +276,6 @@ main (int argc, char **argv)
276# ifdef USE_OPENSSL 276# ifdef USE_OPENSSL
277 if ( check_cert ) { 277 if ( check_cert ) {
278 result = np_net_ssl_check_cert(days_till_exp); 278 result = np_net_ssl_check_cert(days_till_exp);
279 if(result != STATE_OK){
280 printf ("%s\n", _("CRITICAL - Cannot retrieve server certificate."));
281 }
282 my_close(); 279 my_close();
283 return result; 280 return result;
284 } 281 }
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 178bd56..d3c92a4 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -236,12 +236,9 @@ main (int argc, char **argv)
236 result = np_net_ssl_init(sd); 236 result = np_net_ssl_init(sd);
237 if (result == STATE_OK && check_cert == TRUE) { 237 if (result == STATE_OK && check_cert == TRUE) {
238 result = np_net_ssl_check_cert(days_till_exp); 238 result = np_net_ssl_check_cert(days_till_exp);
239 if(result != STATE_OK) {
240 printf(_("CRITICAL - Cannot retrieve server certificate.\n"));
241 }
242 } 239 }
243 } 240 }
244 if(result != STATE_OK){ 241 if(result != STATE_OK || check_cert == TRUE){
245 np_net_ssl_cleanup(); 242 np_net_ssl_cleanup();
246 if(sd) close(sd); 243 if(sd) close(sd);
247 return result; 244 return result;