]> git.michaelhowe.org Git - packages/n/nagios-plugins-local.git/commitdiff
nagios-plugins-local: version 0.5 removes an extraneous print statement in check_cert...
authorMichael Howe <michael@michaelhowe.org>
Sun, 19 Jun 2011 22:25:04 +0000 (22:25 +0000)
committerMichael Howe <michael@michaelhowe.org>
Sun, 19 Jun 2011 22:25:04 +0000 (22:25 +0000)
debian/changelog
plugins/check_cert

index 1dc1d0a6ba4455688c448c887bbd565f0bac83e8..0adfda06aca5455ef9578b89d69c9caf14e1832c 100644 (file)
@@ -1,3 +1,10 @@
+nagios-plugins-local (0.5) unstable; urgency=low
+
+  * Fixed bug in check_cert plugin printing out certificates when it
+    shouldn't. 
+
+ -- Michael Howe <michael@michaelhowe.org>  Sun, 19 Jun 2011 23:15:25 +0100
+
 nagios-plugins-local (0.4) unstable; urgency=low
 
   * check_cert plugin now handles SMTP TLS. 
index ba48c541261e0218b08127611ae6ebbe69f0e0d3..811bde373ef9417595bec46ac4262de95999ad9f 100755 (executable)
@@ -205,7 +205,6 @@ exit($ERRORS{'OK'});
 sub s_client {
     my ($command, $arguments) = @_;
 
-    print scalar(`/bin/echo $command | /usr/bin/gnutls-cli --insecure --print-cert $arguments 2>/dev/null | /usr/bin/openssl x509 -text 2>/dev/null`);
     return(parse_certificate(scalar(`/bin/echo $command | /usr/bin/gnutls-cli --insecure --print-cert $arguments 2>/dev/null | /usr/bin/openssl x509 -text 2>/dev/null`)));
 }