conf/openssl-bsd.conf
author Tomas Zeman <tomas@functionals.cz>
Tue, 21 Feb 2023 13:03:45 +0100
changeset 40 8c421321123d
parent 29 3f6120005a40
permissions -rw-r--r--
run-cron-zabbix

# Certificate monitoring

# Number of seconds till certificate expires
# Parameters: $1 - path to cert file
UserParameter=cert.x509.expire[*],openssl x509 -in $1 -enddate|grep notAfter|awk -F= '{print $$2}'|while read l; do t=`date -j -f "%b %e %T %Y %Z" "$l" +%s`; n=`date +%s`; echo `expr $t - $n`; done