From: Sage Weil Date: Tue, 15 Jan 2013 02:23:52 +0000 (-0800) Subject: mon: note scrub errors in health summary X-Git-Tag: v0.57~197 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e33a8b9e1fef757bbd901d55893e9b84ce6f3fc;p=ceph.git mon: note scrub errors in health summary Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index c679d4154687..5ca4bdeec446 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1329,6 +1329,15 @@ void PGMonitor::get_health(list >& summary, check_full_osd_health(summary, detail, pg_map.full_osds, "full", HEALTH_ERR); check_full_osd_health(summary, detail, pg_map.nearfull_osds, "near full", HEALTH_WARN); + + if (pg_map.pg_sum.stats.sum.num_scrub_errors) { + ostringstream ss; + ss << pg_map.pg_sum.stats.sum.num_scrub_errors << " scrub errors"; + summary.push_back(make_pair(HEALTH_ERR, ss.str())); + if (detail) { + detail->push_back(make_pair(HEALTH_ERR, ss.str())); + } + } } void PGMonitor::check_full_osd_health(list >& summary,