Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Does exactly what I wanted, checking the date on ssl certificates and informing me if they are about to expire.
After expiration it reports the certificate as good. The culprit is a missing exit statement in the expired check; see the diff output below for a fix.
@@ -156,2 +156,3 @@ print “$PROGNAME: CRITICAL – $cn expired ” . abs($daysLeft) . ” day(s) ago.n”; + exit $ERRORS{‘CRITICAL’}; } elsif ($daysLeft