Module: check_mk
Branch: master
Commit: 712aae532ee4e32e892425031ad0dcd45fb87618
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=712aae532ee4e3…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 2 16:29:13 2015 +0100
#2806 FIX oracle_rman: introduced missing WATO, allows configuration of backup age
---
.werks/2806 | 9 +++++++++
ChangeLog | 1 +
checkman/oracle_rman | 13 +++++++------
web/plugins/wato/check_parameters.py | 24 ++++++++++++++++++++++++
4 files changed, 41 insertions(+), 6 deletions(-)
diff --git a/.werks/2806 b/.werks/2806
new file mode 100644
index 0000000..766b493
--- /dev/null
+++ b/.werks/2806
@@ -0,0 +1,9 @@
+Title: oracle_rman: introduced missing WATO, allows configuration of backup age
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1449070107
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index af6f820..4011a4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -130,6 +130,7 @@
* 2858 FIX: hp_proliant_da_phydrv: Adding disk controller to check items...
NOTE: Please refer to the migration notes!
* 2876 FIX: mk_logwatch: Avoid parsing lines that are currently being written by
application...
+ * 2806 FIX: oracle_rman: introduced missing WATO, allows configuration of backup age
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checkman/oracle_rman b/checkman/oracle_rman
index 5e5d1bb..b0d8fac 100644
--- a/checkman/oracle_rman
+++ b/checkman/oracle_rman
@@ -41,12 +41,6 @@ item:
perfdata:
One value: The time since the last successfull backup.
-[parameters]
-parameters (dict):
-
- "age": (int, int) - Maximum time in seconds for warn and crit
- for the last RMAN Backup.
-
inventory:
One separate check for each DB_INCR, DB_FULL, ARCHIVELOG and
CONTROLFILE for each database.
@@ -54,3 +48,10 @@ inventory:
checkgroup_parameters['oracle_rman'] = [
( {'backup_age': (10800, 21600)}
, [], ALL_HOSTS, ALL_SERVICES ),
+
+[parameters]
+parameters (dict):
+
+ "backup_age": (int, int) - Maximum time in seconds for warn and crit
+ for the last RMAN Backup.
+
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index b0f40f0..6f872a2 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -4881,6 +4881,30 @@ register_check_parameters(
register_check_parameters(
subgroup_applications,
+ "oracle_rman",
+ _("Oracle RMAN Backups"),
+ Dictionary(
+ elements = [
+ ("levels",
+ Tuple(
+ title = _("Maximum Age for RMAN backups"),
+ elements = [
+ Age(title = _("warning if older than"),
default_value = 1800),
+ Age(title = _("critical if older than"),
default_value = 3600),
+ ]
+ )
+ )
+ ]
+ ),
+ TextAscii(
+ title = _("Database SID"),
+ size = 12,
+ allow_empty = False),
+ "dict",
+)
+
+register_check_parameters(
+ subgroup_applications,
"oracle_recovery_status",
_("Oracle Recovery Status"),
Dictionary(