Module: check_mk
Branch: master
Commit: f81d16575a09f7e1901d40bd6d18178ee5b1a725
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f81d16575a09f7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 22 17:29:00 2015 +0100
Better output of skipped checks in verbose commandline mode
---
modules/check_mk_base.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 28d1749..1459ce3 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1310,8 +1310,7 @@ def do_all_checks_on_host(hostname, ipaddress, only_check_types =
None):
# handling of wrapped counters via exception. Do not submit
# any check result in that case:
except MKCounterWrapped, e:
- if opt_verbose:
- print "Cannot compute check result: %s" % e
+ verbose("%-20s PEND - Cannot compute check result: %s\n" %
(description, e))
dont_submit = True
except Exception, e: