From 2b5ee3e00de14cdf0e2aef3653f5048d8a660997 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 18 May 2012 15:07:29 -0700 Subject: [PATCH] mon: include health in status Signed-off-by: Sage Weil --- src/mon/Monitor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 4c1f3a711f647..05d3563fecd0b 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"; -- 2.39.5