[checkmk-commits] Check_MK Git: check_mk: check_mkevents: fix usage help if called with illegal options

Mathias Kettner mk at mathias-kettner.de
Tue Apr 2 17:28:57 CEST 2013


Module: check_mk
Branch: master
Commit: 2d6e44f21bbec570abe499196a527b587eb5b16c
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d6e44f21bbec570abe499196a527b587eb5b16c

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Tue Apr  2 17:27:39 2013 +0200

check_mkevents: fix usage help if called with illegal options

---

 ChangeLog                   |    1 +
 mkeventd/lib/check_mkevents |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3dacbce..33e744f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -118,6 +118,7 @@
            in user management dialog
 
     Event Console:
+    * FIX: check_mkevents: fix usage help if called with illegal options
     * setup.py now tries to setup Event Console even in non-OMD world
 
 1.2.2b5:
diff --git a/mkeventd/lib/check_mkevents b/mkeventd/lib/check_mkevents
index f875861..1ffa8e1 100755
--- a/mkeventd/lib/check_mkevents
+++ b/mkeventd/lib/check_mkevents
@@ -60,7 +60,7 @@ try:
         application = sys.argv[2]
     else:
         application = None
-except 1:
+except:
     sys.stdout.write("Usage: check_mkevents [-H REMOTE:PORT] [-a] HOST [APPLICATION]\n")
     sys.stdout.write("\n -a    do not take into account acknowledged events.\n")
     sys.stdout.write("\n")



More information about the checkmk-commits mailing list