Module: check_mk
Branch: master
Commit: 330316ce4d210605be2db01b40f372f523097277
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=330316ce4d2106…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Jan 22 12:11:12 2019 +0100
6756 FIX oracle_instance: Fixed false-positive if the output shows the creation time of
instance
Previously the categorized as stopped or login failed or invalid data if
the output showed 12 elements per instance. The last element has been the
creation time of the database, which is currently not used in the created
service. This problem is solved know.
Change-Id: I9a19d825d9e8b8a3f3563ab395bc5189f6491602
---
.werks/6756 | 13 +++++++++++++
checks/oracle_instance | 4 ++++
2 files changed, 17 insertions(+)
diff --git a/.werks/6756 b/.werks/6756
new file mode 100644
index 0000000..960961b
--- /dev/null
+++ b/.werks/6756
@@ -0,0 +1,13 @@
+Title: oracle_instance: Fixed false-positive if the output shows the creation time of
instance
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1548155292
+Class: fix
+
+Previously the categorized as stopped or login failed or invalid data if
+the output showed 12 elements per instance. The last element has been the
+creation time of the database, which is currently not used in the created
+service. This problem is solved know.
diff --git a/checks/oracle_instance b/checks/oracle_instance
index ec6065c..cc27bb8 100644
--- a/checks/oracle_instance
+++ b/checks/oracle_instance
@@ -113,6 +113,10 @@ def check_oracle_instance(item, params, info):
sid, version, openmode, logins, archiver, up_seconds, _dbid, \
log_mode, database_role, force_logging, name = line
+ elif len(line) == 12:
+ sid, version, openmode, logins, archiver, up_seconds, _dbid, \
+ log_mode, database_role, force_logging, name, _dbcreated = line
+
elif len(line) == 22:
sid, version, openmode, logins, archiver, up_seconds, _dbid, \
log_mode, database_role, force_logging, name, _dbcreated, pluggable,
\