[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Update check script
commit 59e215a7727b44e3c22c0113644a494da8a9a9c0
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Mon Sep 30 21:40:47 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 3800e86..b070a4b 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("0\nOK: %s" % message)
+ status_file.write("OK\n0: %s" % message)
elif status == WARNING:
- status_file.write("1\nWARNING: %s" % message)
+ status_file.write("WARNING\n1: %s" % message)
elif status == CRITICAL:
- status_file.write("2\nCRITICAL: %s" % message)
+ status_file.write("CRITICAL\n2: %s" % message)
else:
- status_file.write("3\nUNKNOWN: %s" % message)
+ status_file.write("UNKNOWN\n3: %s" % message)
status = UNKNOWN
sys.exit(status)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits