]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: include health in status
authorSage Weil <sage@inktank.com>
Fri, 18 May 2012 22:07:29 +0000 (15:07 -0700)
committerSage Weil <sage@inktank.com>
Fri, 18 May 2012 22:07:29 +0000 (15:07 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index 4c1f3a711f6479218eef56aec00a192e09489b59..05d3563fecd0b157bab7adf0b2f70dda700364b5 100644 (file)
@@ -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";