code: def _check_aliveness(self, instance, base_url, vhosts, custom_tags, auth=None, ssl_verify=True):
          
  
          for vhost in vhosts:
              tags = ['vhost:{}'.format(vhost)] + custom_tags
              # We need to urlencode the vhost because it can be '/'.
              path = u'aliveness-test/{}'.format(quote_plus(vhost))
              aliveness_url = urljoin(base_url, path)
              aliveness_proxy = self.get_instance_proxy(instance, aliveness_url)
              aliveness_response = self._get_data(
                  aliveness_url, auth=auth, ssl_verify=ssl_verify, proxies=aliveness_proxy
              )
              message = u"Response from aliveness API: {}".format(aliveness_response)
  
              if aliveness_response.get('status') == 'ok':
                  status = AgentCheck.OK
              else:
                  status = AgentCheck.CRITICAL
  
              self.service_check('rabbitmq.aliveness', status, tags, message=message)
docs: Check the aliveness API against all or a subset of vhosts. The API
          will return {"status": "ok"} and a 200 response code in the case
          that the check passes.