Parcourir la source

added certificate expiry data to sslutils so that OK messages state when certificate is expiring (Matt Capra) #315

Bryan Heden il y a 8 ans
Parent
commit
5c7eb5b9d5
3 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 3 0
      NEWS
  2. 1 0
      THANKS.in
  3. 1 1
      plugins/sslutils.c

+ 3 - 0
NEWS

@@ -4,6 +4,7 @@ This file documents the major additions and syntax changes between releases.
 	ENHANCEMENTS
 	Added directory plugins-python containing three Python plugins
 	Add plugin remove_perfdata to remove perfdata from specified plugin's output
+	Added warning_string/critical_string to struct thresholds for storing originally parsed strings
 	check_http: New parameter `--verify-host` will check if -H hostname matches the SSL certificate
 	check_ping: plugin output will now include hostname and IP address
 	check_disk_smb: Add configfile feature
@@ -17,6 +18,7 @@ This file documents the major additions and syntax changes between releases.
 	check_ldap: Add support for checking LDAP cert age (Guillaume Rousse)
 	check_icmp: Add Jitter, MOS, Score (Alessandro Ren)
 	check_radius: Add calling-station-id (cejkar)
+	ssl_utils: Added certificate expiry data in OK status (check_http, check_smtp, check_tcp) (Matt Capra)
 
 
 2.2.2 xxxx-xx-xx
@@ -38,6 +40,7 @@ This file documents the major additions and syntax changes between releases.
 	check_ping: FreeBSD ping working natively
 	check_sensors: Fix fault test with --ignore-fault
 	check_snmp: Fix perfdata not adhering to plugin dev guidelines
+	check_snmp: warning/critical perfdata is returned properly
 
 
 2.2.1 2017-04-19

+ 1 - 0
THANKS.in

@@ -236,6 +236,7 @@ Martin Foster
 Matej Vela
 Mathieu Arnold
 Mathieu Masseboeuf
+Matt Capra
 Matt Garrett
 Matt Perry
 Matt Pounsett

+ 1 - 1
plugins/sslutils.c

@@ -325,7 +325,7 @@ int np_net_ssl_check_cert_real(SSL *ssl, int days_till_exp_warn, int days_till_e
 		else
 			status = STATE_CRITICAL;
 	} else {
-		printf(_("OK - Certificate '%s' will expire on %s.\n"), cn, timestamp);
+		printf(_("OK - Certificate '%s' will expire in %u days on %s.\n"), cn, days_left, timestamp);
 		status = STATE_OK;
 	}
 	X509_free(certificate);