[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Update check script



commit 8a0ff9f4a64f5e0fd72f7d04b6f11d3fb6ece3c3
Author: hiro <hiro@xxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits