Module: check_mk
Branch: master
Commit: be7f0ae1ab29ca654990e816c9fa279947585a28
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=be7f0ae1ab29ca…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Oct 21 09:25:22 2016 +0200
oracle_performance now handles empty sections as other oracle checks
---
checks/oracle_performance | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/checks/oracle_performance b/checks/oracle_performance
index 134775f..f547f64 100644
--- a/checks/oracle_performance
+++ b/checks/oracle_performance
@@ -134,6 +134,12 @@ def check_oracle_performance(item, _no_params, parsed):
perfdata.append((perfvar, rate))
yield 0, ", ".join(infotexts), perfdata
+ return
+
+ # In case of missing information we assume that the login into
+ # the database has failed and we simply skip this check. It won't
+ # switch to UNKNOWN, but will get stale.
+ raise MKCounterWrapped("Login into database failed")
check_info['oracle_performance'] = {