From 7ef7dc4ad34f122a2b9a12a1a8fb5d0a6475e7ef Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Wed, 13 Feb 2013 09:11:07 +0000
Subject: [PATCH] Minor monitor update

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@669 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
---
 extras/monitor/mutalyzer-monitor.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/extras/monitor/mutalyzer-monitor.py b/extras/monitor/mutalyzer-monitor.py
index 83bb069e..5aaadc38 100755
--- a/extras/monitor/mutalyzer-monitor.py
+++ b/extras/monitor/mutalyzer-monitor.py
@@ -5,6 +5,9 @@ Monitor a Mutalyzer server by some basic uptime checks.
 Run with no arguments for usage info. The script returns a 0 exit status
 on success, 1 on failure. It writes the error to standard error.
 
+Example usage:
+  ./mutalyzer-monitor.py && echo ok || echo problem
+
 Currently implemented checks:
 - Website homepage exists.
 - Name checker SOAP web service can be called.
@@ -37,7 +40,7 @@ def main(mutalyzer_url):
     checks = check_website, check_soap, check_batch
     try:
         [check(mutalyzer_url) for check in checks]
-    except Exception as e:
+    except BaseException as e:
         sys.stderr.write(str(e) + '\n')
         sys.exit(1)
 
-- 
GitLab