1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

certificate_file_expiry: re-enable old defaults for warning and critical

those were accidentially removed in
76170d2745
This commit is contained in:
Andreas Perhab 2022-02-02 14:34:19 +01:00
parent 3c4321327c
commit f0d5df2902

View file

@ -72,6 +72,11 @@ if [ "$1" = "config" ] ; then
echo "graph_category security" echo "graph_category security"
fi fi
# by default when certificate is only valid for 5 days or less emit a warning
warning=${warning:-5:}
# by default when certificate is only valid for 1 day or less emit a critical
critical=${critical:-1:}
now=$(date +%s) now=$(date +%s)
for cert in ${CERTS}; do for cert in ${CERTS}; do
cert_type=${cert%:*} cert_type=${cert%:*}