Module: check_mk
Branch: master
Commit: 876aa303f6ea87e122fc11f2f09881dd9f8695f2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=876aa303f6ea87…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 15 12:07:58 2014 +0200
Minor code cleanup in oracle_recovery_status
---
checks/oracle_recovery_status | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/oracle_recovery_status b/checks/oracle_recovery_status
index af29600..2c7eaf9 100644
--- a/checks/oracle_recovery_status
+++ b/checks/oracle_recovery_status
@@ -65,7 +65,7 @@ def check_oracle_recovery_status(item, params, info):
if oldest_checkpoint_age == -1:
infotext += ", no online datafiles found(!!)"
- state = max(2, state)
+ state = 2
else:
infotext += ", oldest Checkpoint %s ago" \
% (get_age_human_readable(int(oldest_checkpoint_age)))
@@ -87,7 +87,7 @@ def check_oracle_recovery_status(item, params, info):
# check the checkpoint age on a non primary database!
if oldest_checkpoint_age >= crit:
infotext += '(!!)'
- state = max(2, state)
+ state = 2
elif oldest_checkpoint_age >= warn:
infotext += '(!)'
state = max(1, state)
@@ -95,7 +95,7 @@ def check_oracle_recovery_status(item, params, info):
if offlinecount > 0:
infotext += " %i datafiles offline(!!)" \
% (offlinecount)
- state = max(2, state)
+ state = 2
return state, infotext, perfdata