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:
parent
3c4321327c
commit
f0d5df2902
1 changed files with 5 additions and 0 deletions
|
@ -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%:*}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue