Commit 59e215a7 authored by Hiro's avatar Hiro 🏄
Browse files

Update check script

parent 8a0ff9f4
...@@ -120,13 +120,13 @@ if __name__ == "__main__": ...@@ -120,13 +120,13 @@ if __name__ == "__main__":
message = repr(e) message = repr(e)
finally: finally:
if status == OK: if status == OK:
status_file.write("0\nOK: %s" % message) status_file.write("OK\n0: %s" % message)
elif status == WARNING: elif status == WARNING:
status_file.write("1\nWARNING: %s" % message) status_file.write("WARNING\n1: %s" % message)
elif status == CRITICAL: elif status == CRITICAL:
status_file.write("2\nCRITICAL: %s" % message) status_file.write("CRITICAL\n2: %s" % message)
else: else:
status_file.write("3\nUNKNOWN: %s" % message) status_file.write("UNKNOWN\n3: %s" % message)
status = UNKNOWN status = UNKNOWN
sys.exit(status) sys.exit(status)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment