Module: check_mk
Branch: master
Commit: e7741af2fc0aed5295d0c56425d96d0f8b15e846
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e7741af2fc0aed…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 11 16:52:34 2012 +0100
FIX: oracle_version: return valid check result in case of missing agent info
---
ChangeLog | 1 +
checks/oracle_version | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aedb7dd..b5725b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
* Add: plesk_domains - List domains configured in plesk installations
* Add: plesk_backups - Monitor backup spaces configured for domains in plesk
* FIX: zfsget: fix exception on snapshot volumes (where available is '-')
+ * FIX: oracle_version: return valid check result in case of missing agent info
Multisite:
* Implemented LDAP integration of Multisite. You can now authenticate your
diff --git a/checks/oracle_version b/checks/oracle_version
index ea6f835..f899e76 100644
--- a/checks/oracle_version
+++ b/checks/oracle_version
@@ -40,6 +40,7 @@ def check_oracle_version(item, _no_params, info):
return err
return (0, 'OK - Version: ' + " ".join(line[1:]))
+ return (3, 'UNKNOWN - no version information, database might be stopped')
check_info['oracle_version'] = {
"check_function" : check_oracle_version,