summaryrefslogtreecommitdiff
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/rhctl5
1 files changed, 4 insertions, 1 deletions
diff --git a/checks/rhctl b/checks/rhctl
index 77afaa3..5a0f46c 100644
--- a/checks/rhctl
+++ b/checks/rhctl
@@ -25,7 +25,10 @@ def check_rhctl_status(item, params, info):
if data['Mood'] == 'awakening':
return (WARN, 'rhctl is awakening')
if data['Mood'] == 'happy':
- return (OK, 'rhctl is happy, active server is %s' % data['ActiveServer'])
+ if data['ActiveServer'] == 'master':
+ return (OK, 'rhctl is happy, active server is %s' % data['ActiveServer'])
+ else:
+ return (WARN, 'rhctl is happy, active server is %s(!)' % data['ActiveServer'])
if data['Mood'] == 'nervous':
return (WARN, 'rhctl is nervous(!), active server is %s' % data['ActiveServer'])
if data['Mood'] == 'sad':