# HG changeset patch # User Christian Arnold # Date 1298297682 -3600 # Node ID 14408207746e73120edd019fadca1585601e5907 # Parent 6aa194e5125076c2da9a60f3004e8b1c87458e37 no more required perl 5.10 for older debian releases diff -r 6aa194e51250 -r 14408207746e check_client_cert.pl --- a/check_client_cert.pl Wed Feb 02 12:39:29 2011 +0100 +++ b/check_client_cert.pl Mon Feb 21 15:14:42 2011 +0100 @@ -17,7 +17,6 @@ # # Christian Arnold -use 5.010; use warnings; use strict; use if $ENV{DEBUG} => "Smart::Comments"; @@ -35,7 +34,7 @@ ); my $ME = basename $0; -my $VERSION = "0.1.1"; +my $VERSION = "0.1.2"; sub get_status($); sub report($); @@ -72,7 +71,7 @@ open( FILE, $file ) or do { - say "CERT CRITICAL: $file $!"; + print "CERT CRITICAL: $file $!\n"; exit $ERRORS{CRITICAL}; }; @@ -124,15 +123,15 @@ ### @ok if (@critical) { - say "CERT CRITICAL: " . join( " ", @critical ); + print "CERT CRITICAL: " . join( " ", @critical ); exit $ERRORS{"CRITICAL"}; } elsif (@warning) { - say "CERT WARNING: " . join( " ", @warning ); + print "CERT WARNING: " . join( " ", @warning ); exit $ERRORS{"WARNING"}; } else { - say "CERT OK: " . join( " ", @ok ); + print "CERT OK: " . join( " ", @ok ); exit $ERRORS{"OK"}; } } @@ -217,7 +216,7 @@ =head1 VERSION -This man page is current for version 0.1.1 of check_client_cert. +This man page is current for version 0.1.2 of check_client_cert. =head1 AUTHOR diff -r 6aa194e51250 -r 14408207746e debian/changelog --- a/debian/changelog Wed Feb 02 12:39:29 2011 +0100 +++ b/debian/changelog Mon Feb 21 15:14:42 2011 +0100 @@ -1,3 +1,9 @@ +nagios-plugin-check-client-cert (0.1.2) stable; urgency=low + + * + + -- Christian Arnold Mon, 21 Feb 2011 15:09:15 +0100 + nagios-plugin-check-client-cert (0.1.1-1) stable; urgency=low * add perl-doc as dependency package for displaying manual page diff -r 6aa194e51250 -r 14408207746e debian/control --- a/debian/control Wed Feb 02 12:39:29 2011 +0100 +++ b/debian/control Mon Feb 21 15:14:42 2011 +0100 @@ -7,7 +7,7 @@ Package: nagios-plugin-check-client-cert Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base (>= 5.10.0), libdate-manip-perl, perl-doc +Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base, libdate-manip-perl, perl-doc Description: nagios plugin to check ssl client certificate expire date This plugin read certificate status informations from file and report epire date for certificates. diff -r 6aa194e51250 -r 14408207746e debian/files --- a/debian/files Wed Feb 02 12:39:29 2011 +0100 +++ b/debian/files Mon Feb 21 15:14:42 2011 +0100 @@ -1,1 +1,1 @@ -nagios-plugin-check-client-cert_0.1.1-1_all.deb net extra +nagios-plugin-check-client-cert_0.1.2_all.deb net extra