[nagios-nrpe] Ajout check_ssl_local

This commit is contained in:
William Hirigoyen (Evolix) 2022-08-11 15:08:07 +02:00
parent de0c4fd314
commit b47a2e46d9

View file

@ -24,8 +24,8 @@ certs_list=$(cat "$certs_list_path" | sed -E 's/(.*)#.*/\1/g' | grep -v -E '^$')
for cert_path in $certs_list; do for cert_path in $certs_list; do
if [ ! -f "$cert_path" ]; then if [ ! -f "$cert_path" ] && [ ! -d "$cert_path" ]; then
>&2 echo "Warning: Cert file '$cert_path' does not exist." >&2 echo "Warning: path '$cert_path' is not a file or a directory."
warning=1 warning=1
continue continue
fi fi