Faidon has uploaded a new change for review. https://gerrit.wikimedia.org/r/79217
Change subject: ceph: more detailed status output for nagios check ...................................................................... ceph: more detailed status output for nagios check Don't return 2 (critical) on HEALTH_WARN. Instead, use proper all possible nagios plugin return codes: map HEALTH_WARN to WARNING, HEALTH_ERR to CRITICAL and HEALTH_OK to OK (duh). If none of these are detected, fall back to UNKNOWN. Change-Id: I40a2d01e0f4f6905d1f2b296d4d9520251c092cf --- M modules/ceph/templates/check_ceph_health.erb 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/17/79217/1 diff --git a/modules/ceph/templates/check_ceph_health.erb b/modules/ceph/templates/check_ceph_health.erb index 3eaa8f3..42209c1 100755 --- a/modules/ceph/templates/check_ceph_health.erb +++ b/modules/ceph/templates/check_ceph_health.erb @@ -9,6 +9,10 @@ echo "Ceph $HEALTH" if echo $HEALTH | grep -q OK; then exit 0 -else +elif echo $HEALTH | grep -q WARN; then + exit 1 +elif echo $HEALTH | grep -q ERR; then exit 2 +else + exit 3 fi -- To view, visit https://gerrit.wikimedia.org/r/79217 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I40a2d01e0f4f6905d1f2b296d4d9520251c092cf Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Faidon <fai...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits