diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-11 22:17:39 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-11 22:17:39 (GMT) |
commit | 5f09079498b1ff43027aa5f6b8b69bc518b5ee40 (patch) | |
tree | f7b5624f17e15715e50fea70af6d71a12bb6a30f /checks/rhctl | |
parent | 6014b438ade5bfe80681d4b4201c7252bcee04c6 (diff) |
rhctl check: warn if server is not master
Diffstat (limited to 'checks/rhctl')
-rw-r--r-- | checks/rhctl | 5 |
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': |