Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@lexiyntax
Favorites0
Views
Projects0
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
Reviewed 14 years ago