commit 65508db5ebf15b580801368f1a9d00003dc65e33 Author: hiro hiro@torproject.org Date: Mon Sep 30 19:34:36 2019 +0200
Update check script --- scripts/check_service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/check_service b/scripts/check_service index 4cdaa15..82124bd 100644 --- a/scripts/check_service +++ b/scripts/check_service @@ -120,13 +120,13 @@ if __name__ == "__main__": message = repr(e) finally: if status == OK: - status_file.write("OK: %s" % message) + status_file.write("OK: 0\n%s" % message) elif status == WARNING: - status_file.write("WARNING: %s" % message) + status_file.write("WARNING: 1\n%s" % message) elif status == CRITICAL: - status_file.write("CRITICAL: %s" % message) + status_file.write("CRITICAL: 2\n%s" % message) else: - status_file.write("UNKNOWN: %s" % message) + status_file.write("UNKNOWN: 3\n%s" % message) status = UNKNOWN
sys.exit(status)
tor-commits@lists.torproject.org