ソースを参照

Nagios not showing Certificate expiry warning only SSL Version

Fix for issue https://github.com/nagios-plugins/nagios-plugins/issues/168

Some debugging code was left in place
John C. Frickson 9 年 前
コミット
a41c7d1ce8
2 ファイル変更5 行追加2 行削除
  1. 5 1
      NEWS
  2. 0 1
      plugins/sslutils.c

+ 5 - 1
NEWS

@@ -5,6 +5,8 @@ This file documents the major additions and syntax changes between releases.
 
 	ENHANCEMENTS
 	SNI support in check_tcp (ddbilik)
+	check_disk_smb.pl: add support for -k for kerberos authentication
+	check_file_age.c: allow wildcard matching
 
 	FIXES
 	check_tcp.c: tools/build_perl_modules hardcodes the perl used
@@ -14,8 +16,10 @@ This file documents the major additions and syntax changes between releases.
 	check_nagios.c: could not locate a running nagios process
 	check_swap.c: does not accept threshold of zero
 	check_swap.c: uses inconsistent checks on negative thresholds
-	check_disk_smb.pl: add support for -k for kerberos authentication
 	check_snmp.c: --offset does not appear to do anything (Troy Lea)
+	sslutils.c: output has first line of "SSL Version: xxxxxx"
+	  effects anything using sslutils including check_http, check_dhcp
+	  and others
 
 
 2.1.2 2016-08-01

+ 0 - 1
plugins/sslutils.c

@@ -157,7 +157,6 @@ int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int
 #endif
 		SSL_set_fd(s, sd);
 		if (SSL_connect(s) == 1) {
-printf("SSL Version: %s\n", SSL_get_version(s));
 			return OK;
 		} else {
 			printf("%s\n", _("CRITICAL - Cannot make SSL connection."));