projects
/
infodrom
/
icinga-plugins
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve check output
[infodrom/icinga-plugins]
/
check_ssl_certificate
diff --git
a/check_ssl_certificate
b/check_ssl_certificate
old mode 100644
(file)
new mode 100755
(executable)
index
641dff7
..
bc96d45
--- a/
check_ssl_certificate
+++ b/
check_ssl_certificate
@@
-130,7
+130,7
@@
close(OPENSSL);
$date =~ s/ +/ /g;
my ($month, $day, $hour, $min, $sec, $year, $tz) = split(/[\s+|:]/, $date);
$date =~ s/ +/ /g;
my ($month, $day, $hour, $min, $sec, $year, $tz) = split(/[\s+|:]/, $date);
-print
"m=$month, d=$day, h=$hour, m=$min, s=$sec, y=$year, z=$tz\n"
;
+print
f "Expiry date: %d %s %d, %d:%02d:%02d %s\n", $day, $month, $year, $hour, $min, $sec, $tz
;
my $daysLeft = int((timegm($sec, $min, $hour, $day, $months{$month}, $year - 1900) - time()) / 86400);
my $daysLeft = int((timegm($sec, $min, $hour, $day, $months{$month}, $year - 1900) - time()) / 86400);