fix
This commit is contained in:
parent
f4bdf2c982
commit
4de1df3dcb
|
@ -23,7 +23,7 @@ try:
|
||||||
state = state_mes['message']
|
state = state_mes['message']
|
||||||
except:
|
except:
|
||||||
print('Unknown: failed to fetch data')
|
print('Unknown: failed to fetch data')
|
||||||
traceback.print_exc()
|
print(traceback.format_exc())
|
||||||
sys.exit(nagios.STATE_CRIT)
|
sys.exit(nagios.STATE_CRIT)
|
||||||
|
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
|
|
Loading…
Reference in New Issue