Check SSL expiration and ignore "No data received from host"
Posted: Thu Jan 20, 2022 9:54 am
Hello,
I have a simple check_http check that monitors the expiration of SSL certificates:
check_http -I 192.168.0.2 -H 192.168.0.2 -S -C 60 --sni
which returns:
SSL OK - Certificate 'xxx certificate' will expire on 2022-09-29 15:29 +0200/CEST. HTTP CRITICAL - No data received from host
"HTTP CRITICAL - No data received from host" part is expected.
Is there any way I can ignore it so the service status is green (OK) as per SSL check? Right now it's reported as Critical.
Thank you.
I have a simple check_http check that monitors the expiration of SSL certificates:
check_http -I 192.168.0.2 -H 192.168.0.2 -S -C 60 --sni
which returns:
SSL OK - Certificate 'xxx certificate' will expire on 2022-09-29 15:29 +0200/CEST. HTTP CRITICAL - No data received from host
"HTTP CRITICAL - No data received from host" part is expected.
Is there any way I can ignore it so the service status is green (OK) as per SSL check? Right now it's reported as Critical.
Thank you.