From 745c6c4d847e936e5bebdd06e81cd965272246a7 Mon Sep 17 00:00:00 2001 From: Drake Panzer Date: Wed, 3 May 2023 12:52:27 -0600 Subject: [PATCH] return crit instead --- check_monitor_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_monitor_bot.py b/check_monitor_bot.py index efe6d5d..bb56def 100755 --- a/check_monitor_bot.py +++ b/check_monitor_bot.py @@ -49,8 +49,8 @@ def main(): r = requests.get(args.metrics_endpoint) if r.status_code != 200: - print(f'UNKNOWN: monitor bot endpoint returned a bad status code {r.status_code}') - sys.exit(nagios.UNKNOWN) + print(f'CRITICAL: monitor bot endpoint returned a bad status code {r.status_code}') + sys.exit(nagios.CRITICAL) soup = BeautifulSoup(r.text, 'html.parser') tooltips = soup.find_all('span', {'class', 'tooltip'}) data = {}