return crit instead
This commit is contained in:
parent
2dbded9bee
commit
745c6c4d84
|
@ -49,8 +49,8 @@ def main():
|
||||||
|
|
||||||
r = requests.get(args.metrics_endpoint)
|
r = requests.get(args.metrics_endpoint)
|
||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
print(f'UNKNOWN: monitor bot endpoint returned a bad status code {r.status_code}')
|
print(f'CRITICAL: monitor bot endpoint returned a bad status code {r.status_code}')
|
||||||
sys.exit(nagios.UNKNOWN)
|
sys.exit(nagios.CRITICAL)
|
||||||
soup = BeautifulSoup(r.text, 'html.parser')
|
soup = BeautifulSoup(r.text, 'html.parser')
|
||||||
tooltips = soup.find_all('span', {'class', 'tooltip'})
|
tooltips = soup.find_all('span', {'class', 'tooltip'})
|
||||||
data = {}
|
data = {}
|
||||||
|
|
Loading…
Reference in New Issue