return crit instead

This commit is contained in:
Cyberes 2023-05-03 12:52:27 -06:00
parent 2dbded9bee
commit 745c6c4d84
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {}