commit 8a0ff9f4a64f5e0fd72f7d04b6f11d3fb6ece3c3 Author: hiro hiro@torproject.org Date: Mon Sep 30 20:28:45 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 82124bd..3800e86 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: 0\n%s" % message) + status_file.write("0\nOK: %s" % message) elif status == WARNING: - status_file.write("WARNING: 1\n%s" % message) + status_file.write("1\nWARNING: %s" % message) elif status == CRITICAL: - status_file.write("CRITICAL: 2\n%s" % message) + status_file.write("2\nCRITICAL: %s" % message) else: - status_file.write("UNKNOWN: 3\n%s" % message) + status_file.write("3\nUNKNOWN: %s" % message) status = UNKNOWN
sys.exit(status)
tor-commits@lists.torproject.org