def get_status(self, admin=False):
        status = {}
        ## check if the server is online
        try:
            ping(self.get_mongo_client())
            status['connection'] = True

            # grab status summary if it was specified + if i am not an arbiter
            if admin:
                server_summary = self.get_server_status_summary()
                status["serverStatusSummary"] = server_summary

        except (__HOLE__, Exception), e:
            log_exception(e)
            status['connection'] = False
            status['error'] = "%s" % e
            if "timed out" in status['error']:
                status['timedOut'] = True
        return status

    ###########################################################################
dataset/ETHPy150Open mongolab/mongoctl/mongoctl/objects/server.py/Server.get_status