[checkmk-commits] Check_MK Git: check_mk: #1071 FIX oracle_rman_backups: Only inventorize ARCHIVELOG / DB FULL / DB INCR entries

Lars Michelsen lm at mathias-kettner.de
Mon Aug 4 10:03:08 CEST 2014


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

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon Aug  4 10:03:00 2014 +0200

#1071 FIX oracle_rman_backups: Only inventorize ARCHIVELOG / DB FULL / DB INCR entries

Previous versions of the check did also inventorize the entry "BACKUPSET" which
is useless to monitor.

---

 .werks/1071                |   10 ++++++++++
 ChangeLog                  |    1 +
 checks/oracle_rman_backups |    2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.werks/1071 b/.werks/1071
new file mode 100644
index 0000000..f092c42
--- /dev/null
+++ b/.werks/1071
@@ -0,0 +1,10 @@
+Title: oracle_rman_backups: Only inventorize ARCHIVELOG / DB FULL / DB INCR entries
+Level: 1
+Component: checks
+Compatible: comp
+Version: 1.2.5i6
+Date: 1407139283
+Class: fix
+
+Previous versions of the check did also inventorize the entry "BACKUPSET" which
+is useless to monitor.
diff --git a/ChangeLog b/ChangeLog
index 33c18ba..d7e5d5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
     * 0192 FIX: oracle_rman_backups: Not longer try to make a inventory for broken plugin outputs
     * 0194 FIX: raritan_pdu_inlet: Check now outputs the correct values...
             NOTE: Please refer to the migration notes!
+    * 1071 FIX: oracle_rman_backups: Only inventorize ARCHIVELOG / DB FULL / DB INCR entries...
 
     Multisite:
     * 1066 Implemented Dashboard Designer...
diff --git a/checks/oracle_rman_backups b/checks/oracle_rman_backups
index 17e5f5e..7f51b7c 100644
--- a/checks/oracle_rman_backups
+++ b/checks/oracle_rman_backups
@@ -31,7 +31,7 @@
 def inventory_oracle_rman_backups(info):
     inventory = []
     for line in info:
-        if line[1] != "FAILURE":
+        if line[1] != "FAILURE" and " ".join(line[5:]) in ('ARCHIVELOG', 'DB FULL', 'DB INCR'):
             inventory.append(("%s.%s" % (line[0], " ".join(line[5:])), {}))
     return inventory
 



More information about the checkmk-commits mailing list