Module: check_mk
Branch: master
Commit: 8686677ecd19232221c1367d02ef95a6b6b8efa7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8686677ecd1923…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 22 16:24:20 2015 +0200
#2212 FIX oracle_tablespaces: Fix plugin output in case of detected problem in Autoextend
settings
The checkout would output <tt>NO AUTOEXTEND(!!)</tt> if it had detected that
autoextend
was <b>on</b> but should be off. The <tt>NO</tt> has now been
removed in order to fix
the output. The vice versa case has also been fixed.
---
.werks/2212 | 12 ++++++++++++
ChangeLog | 1 +
checks/oracle_tablespaces | 4 ++--
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/2212 b/.werks/2212
new file mode 100644
index 0000000..4d99ea2
--- /dev/null
+++ b/.werks/2212
@@ -0,0 +1,12 @@
+Title: oracle_tablespaces: Fix plugin output in case of detected problem in Autoextend
settings
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1429712580
+
+The checkout would output <tt>NO AUTOEXTEND(!!)</tt> if it had detected that
autoextend
+was <b>on</b> but should be off. The <tt>NO</tt> has now been
removed in order to fix
+the output. The vice versa case has also been fixed.
diff --git a/ChangeLog b/ChangeLog
index cbfcae9..9fa75dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -339,6 +339,7 @@
* 2213 FIX: cisco_temperature: Fixed behaviour in cases where device reports status
but no temperature...
* 2069 FIX: netapp_api_disk.summary: fixed one missing disk in summary check...
* 2070 FIX: agent_netapp: fixed exception when a channel has no shelf-list
configured
+ * 2212 FIX: oracle_tablespaces: Fix plugin output in case of detected problem in
Autoextend settings...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/oracle_tablespaces b/checks/oracle_tablespaces
index c1784b7..92b0154 100644
--- a/checks/oracle_tablespaces
+++ b/checks/oracle_tablespaces
@@ -205,10 +205,10 @@ def check_oracle_tablespaces(item, params, info):
# Check autoextend status if parameter not set to None
if autoext != None:
if autoext and num_extensible == 0:
- infotext += ", AUTOEXTEND(!!)"
+ infotext += ", NO AUTOEXTEND(!!)"
status = 2
elif not autoext and num_extensible > 0:
- infotext += ", NO AUTOTEXTEND(!!)"
+ infotext += ", AUTOTEXTEND(!!)"
status = 2
elif num_extensible > 0:
infotext += ", autoextend"