Problem is in the last lines of the script:
### Exit with a success indicator
if [ "${NAGIOS}" = "TRUE" ]; then
exit $RETCODE
else
exit 0
fi
So a workaround is to use the '-n' switch, but this gives a "ugly"
message line:
FILE:/.../cert.pem Expired Jan 20 2013 |days=-9
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1108791
Title:
no failure code is set if an expiration is detected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ssl-cert-check/+bug/1108791/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs