Module: check_mk
Branch: master
Commit: 82fbc65ea9d19328ff0f4c2f9b77c8766f0692b9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82fbc65ea9d193…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Wed May 21 20:27:06 2014 +0200
fast_lta_headunit.status: On the slave node status appReadOnly is ok too
---
checkman/fast_lta_headunit.status | 1 +
checks/fast_lta_headunit | 3 +++
2 files changed, 4 insertions(+)
diff --git a/checkman/fast_lta_headunit.status b/checkman/fast_lta_headunit.status
index da52791..b0659ab 100644
--- a/checkman/fast_lta_headunit.status
+++ b/checkman/fast_lta_headunit.status
@@ -6,6 +6,7 @@ distribution: check_mk
description:
Checks the Head Unit Status of a FAST LTA Storage System.
Returns {OK} on status {appReady} and {CRIT} on every other.
+ On the slave node status {appReadOnly} is {OK} too.
inventory:
Finds exactly one check on every system (head unit).
diff --git a/checks/fast_lta_headunit b/checks/fast_lta_headunit
index 2e44e81..dc98687 100644
--- a/checks/fast_lta_headunit
+++ b/checks/fast_lta_headunit
@@ -65,6 +65,9 @@ def check_fast_lta_headunit_status(item, _no_params, info):
if info[0][0][0] == "60":
status = 0
+ elif info[0][0][0] == "70" and info[0][0][1] == "0":
+ # on Slave node appReadOnly is also an ok state
+ status = 0
else:
status = 2