From 44d9571a6a2800369ca88ba4ab1f4b6f1dff6112 Mon Sep 17 00:00:00 2001 From: Michael Howe Date: Sun, 19 Jun 2011 22:42:32 +0000 Subject: [PATCH] More fixes to check_cert --- debian/changelog | 3 ++- plugins/check_cert | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0adfda0..2543a01 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 19 Jun 2011 23:15:25 +0100 + -- Michael Howe Sun, 19 Jun 2011 23:41:43 +0100 nagios-plugins-local (0.4) unstable; urgency=low diff --git a/plugins/check_cert b/plugins/check_cert index 811bde3..feec88b 100755 --- a/plugins/check_cert +++ b/plugins/check_cert @@ -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"; -- 2.39.5