]> git.michaelhowe.org Git - packages/n/nagios-plugins-local.git/commitdiff
More fixes to check_cert
authorMichael Howe <michael@michaelhowe.org>
Sun, 19 Jun 2011 22:42:32 +0000 (22:42 +0000)
committerMichael Howe <michael@michaelhowe.org>
Sun, 19 Jun 2011 22:42:32 +0000 (22:42 +0000)
debian/changelog
plugins/check_cert

index 0adfda06aca5455ef9578b89d69c9caf14e1832c..2543a01ae472a17d79d3b06fb8f1d4fa19ebe836 100644 (file)
@@ -2,8 +2,9 @@ nagios-plugins-local (0.5) unstable; urgency=low
 
   * Fixed bug in check_cert plugin printing out certificates when it
     shouldn't. 
+  * check_cert plugin has explicit paths to programs set.
 
- -- Michael Howe <michael@michaelhowe.org>  Sun, 19 Jun 2011 23:15:25 +0100
+ -- Michael Howe <michael@michaelhowe.org>  Sun, 19 Jun 2011 23:41:43 +0100
 
 nagios-plugins-local (0.4) unstable; urgency=low
 
index 811bde373ef9417595bec46ac4262de95999ad9f..feec88b59db400ee78307bfc65fc10480603a291 100755 (executable)
@@ -250,7 +250,7 @@ sub get_smtp_starttls_cert {
     my $certreturn;
 
     eval {
-        $pid = open3(\*TLSOUT, \*TLSIN, \*TLSERR, "gnutls-cli", "--crlf", "--starttls", "--insecure", "--print-cert", "--port", $port, $host );
+        $pid = open3(\*TLSOUT, \*TLSIN, \*TLSERR, "/usr/bin/gnutls-cli", "--crlf", "--starttls", "--insecure", "--print-cert", "--port", $port, $host );
     };
     if( $@ ){
         die "open3: $!\n$@\n";
@@ -313,7 +313,7 @@ sub get_smtp_starttls_cert {
 
     my $sslpid;
     eval{
-        $sslpid = open3( \*SSLOUT, \*SSLIN, \*SSLERR, "openssl", "x509", "-text" );
+        $sslpid = open3( \*SSLOUT, \*SSLIN, \*SSLERR, "/usr/bin/openssl", "x509", "-text" );
     };
     if( $@ ){
         die "open3: $!\n$@\n";