diff options
author | mat <mat@FreeBSD.org> | 2017-08-30 14:35:00 +0000 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-08-30 14:35:00 +0000 |
commit | e67a0dfb44c74f05488a5b11181301d9e14617c2 (patch) | |
tree | ea6f7c8ecc0a5218e3c3dd1a0878c8e77c057416 /net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c | |
parent | cffb63fe81a7b9b22e7a59d15b1354fe1700fa19 (diff) | |
download | FreeBSD-ports-e67a0dfb44c74f05488a5b11181301d9e14617c2.zip FreeBSD-ports-e67a0dfb44c74f05488a5b11181301d9e14617c2.tar.gz |
MFH: r448907 r448913 r448920 r448923 r448927 r448983
Add jail support to check_procs, restore check_http's -C option to its former
glory.
Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c')
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c b/net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c new file mode 100644 index 0000000..57cbd74 --- /dev/null +++ b/net-mgmt/nagios-plugins/files/patch-plugins_sslutils.c @@ -0,0 +1,21 @@ +--- plugins/sslutils.c.orig 2017-04-19 16:03:12 UTC ++++ plugins/sslutils.c +@@ -211,9 +211,6 @@ int np_net_ssl_check_cert(int days_till_ + int time_remaining; + time_t tm_t; + +- // Prefix whatever we're about to print with SSL +- printf("SSL "); +- + certificate=SSL_get_peer_certificate(s); + if (!certificate) { + printf("%s\n",_("CRITICAL - Cannot retrieve server certificate.")); +@@ -304,7 +301,7 @@ int np_net_ssl_check_cert(int days_till_ + else + status = STATE_CRITICAL; + } else { +- printf(_("OK - Certificate '%s' will expire on %s. "), cn, timestamp); ++ printf(_("OK - Certificate '%s' will expire on %s.\n"), cn, timestamp); + status = STATE_OK; + } + X509_free(certificate); |