From e81696d6b8c8131d52c808faf979106a283f057a Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 22 Jun 2024 21:45:38 -0600 Subject: [PATCH] adjust rc --- checker/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checker/http.py b/checker/http.py index 1039452..673f9c5 100644 --- a/checker/http.py +++ b/checker/http.py @@ -32,6 +32,6 @@ def fetch_with_retry(url, method: str = 'get', retries=3, delay=1, **kwargs): except requests.exceptions.RequestException as e: if i == retries - 1: # raise e - print_icinga2_check_status(f'HTTP request failed after {i + 1} retries: {url}\n{e}', nagios.STATE_UNKNOWN) - sys.exit(nagios.STATE_UNKNOWN) + print_icinga2_check_status(f'HTTP request failed after {i + 1} retries: {url}\n{e}', nagios.STATE_CRIT) + sys.exit(nagios.STATE_CRIT) sleep(delay)