- improve various aspects:
+ list all unmonitored services, not just the first
+ exit with unknown state if can't connect to monit's web interface
+ * check_cert
+ - fix CN-test regex (in stretch, it looks like openssl includes a space
+ for 'CN = ').
- -- Michael Howe <michael@michaelhowe.org> Sat, 09 Dec 2017 22:20:59 +0000
+ -- Michael Howe <michael@michaelhowe.org> Fri, 22 Dec 2017 23:42:09 +0000
nagios-plugins-local (0.16) unstable; urgency=medium
$result{'not_before'} = str2time($1);
} elsif ($line =~ /^\s+Not After : (.*)$/ ){
$result{'not_after'} = str2time($1);
- } elsif ($line =~ /^\s+Subject:.*, CN=(.*)$/ ){
+ } elsif ($line =~ /^\s+Subject:.*, CN\s*=\s*(.*)\s*$/ ){
$result{'cn'} = $1;
}
}