code: def mon_status(conn, logger, hostname, args, silent=False):
      
      mon = 'mon.%s' % hostname
  
      try:
          out = mon_status_check(conn, logger, hostname, args)
          if not out:
              logger.warning('monitor: %s, might not be running yet' % mon)
              return False
  
          if not silent:
              logger.debug('*'*80)
              logger.debug('status for monitor: %s' % mon)
              for line in json.dumps(out, indent=2, sort_keys=True).split('\n'):
                  logger.debug(line)
              logger.debug('*'*80)
          if out['rank'] >= 0:
              logger.info('monitor: %s is running' % mon)
              return True
          if out['rank'] == -1 and out['state']:
              logger.info('monitor: %s is currently at the state of %s' % (mon, out['state']))
              return True
          logger.info('monitor: %s is not running' % mon)
          return False
      except RuntimeError:
          logger.info('monitor: %s is not running' % mon)
          return False
docs: run ``ceph daemon mon.`hostname` mon_status`` on the remote end and provide
      not only the output, but be able to return a boolean status of what is
      going on.
      ``False`` represents a monitor that is not doing OK even if it is up and
      running, while ``True`` would mean the monitor is up and running correctly.