Module: check_mk
Branch: master
Commit: b1967d265059ee9939a42f80e6083f8856286a47
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1967d265059ee…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jan 11 08:45:00 2017 +0100
4261 FIX db2_logsizes: fixed wrong discovery condition
Change-Id: Ib8eb235355589e5cad58fa97fb40ba27d8370a2d
---
.werks/4261 | 10 ++++++++++
ChangeLog | 2 +-
checks/db2_logsizes | 5 ++++-
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/4261 b/.werks/4261
new file mode 100644
index 0000000..8ce8a7d
--- /dev/null
+++ b/.werks/4261
@@ -0,0 +1,10 @@
+Title: db2_logsizes: fixed wrong discovery condition
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1484120671
+
+
diff --git a/ChangeLog b/ChangeLog
index 6260396..d5516be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,8 +30,8 @@
* 4184 FIX: hivemanager_devices: Fixed bug if device is up for more than 1 year...
* 4230 FIX: db2_logsizes Removed debug output (regression since 1.4.0i3)
* 4232 FIX: tsm_storagepools: Fixed missing perfdata
- * 4233 FIX: cisco_temp_sensor: Fixed possible wrong calculated thresholds
* 4259 FIX: aix_sap_processlist: fixed ValueError; if process has stopped and does
not report any start time
+ * 4261 FIX: db2_logsizes: fixed wrong discovery condition
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can
now be configured via global settings....
diff --git a/checks/db2_logsizes b/checks/db2_logsizes
index 9c9dd13..8b545e4 100644
--- a/checks/db2_logsizes
+++ b/checks/db2_logsizes
@@ -24,6 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+
# <<<db2_logsizes>>>
# [[[db2taddm:CMDBS1]]]
# TIMESTAMP 1426495343
@@ -32,10 +33,12 @@
# logprimary 6
# logsecond 100
+
factory_settings["db2_logsizes_default_levels"] = {
"levels": (-20.0, -10.0) # Interpreted as free space in
df_check_filesystem_single
}
+
def parse_db2_logsizes(info):
pre_parsed = parse_db2_dbs(info)
global_timestamp = pre_parsed[0]
@@ -60,7 +63,7 @@ def parse_db2_logsizes(info):
def inventory_db2_logsizes(parsed):
for db, db_info in parsed.items():
- if "logfilsiz" not in db_info:
+ if "logfilsiz" in db_info:
yield db, {}