diff options
author | Yannick Martin <yannick.martin@ovhcloud.com> | 2024-08-09 12:14:28 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2024-08-11 22:18:28 +0200 |
commit | 78ce3144e38791a8ea2ee5832a91b24d743dccd3 (patch) | |
tree | 0479a51335dce4af2bbc013e9a767f3e437984e8 /README | |
parent | acbfbf3de614f03ea5f9d3942558f1661fc202a4 (diff) | |
download | monitoring-plugins-78ce3144e38791a8ea2ee5832a91b24d743dccd3.tar.gz |
check_curl: raise SSL issue when --continue-after-certificate is used
This change aims to raise the worst status between the SSL check and the HTTP check.
before:
check_curl -H www.google.fr -S --continue-after-certificate --certificate 4000,4000 ; echo $?
CRITICAL - Certificate '*.google.fr' expires in 74 day(s) (Tue 22 Oct 2024 12:53:52 PM GMT +0000).
HTTP OK: HTTP/2 200 - 22807 bytes in 0.076 second response time |time=0.075516s;;;0.000000;10.000000 size=22807B;;;0;
0
after:
/usr/lib/nagios/ovh/check_curl -H www.google.fr -S --continue-after-certificate --certificate 4000,4000 ; echo $?
CRITICAL - Certificate '*.google.fr' expires in 74 day(s) (Tue 22 Oct 2024 12:53:52 PM GMT +0000).
HTTP OK: HTTP/2 200 - 22840 bytes in 0.090 second response time |time=0.090463s;;;0.000000;10.000000 size=22840B;;;0;
2
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions