From: Sage Weil Date: Fri, 18 May 2012 22:07:29 +0000 (-0700) Subject: mon: include health in status X-Git-Tag: v0.48argonaut~137^2~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b5ee3e00de14cdf0e2aef3653f5048d8a660997;p=ceph.git mon: include health in status Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 4c1f3a711f64..05d3563fecd0 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1082,7 +1082,10 @@ void Monitor::handle_command(MMonCommand *m) } if (m->cmd[0] == "status") { // reply with the status for all the components + string health; + get_health(health, NULL); stringstream ss; + ss << " health " << health << "\n"; ss << " monmap " << *monmap << "\n"; ss << " osdmap " << osdmon()->osdmap << "\n"; ss << " pgmap " << pgmon()->pg_map << "\n";