'Collect the blocking stats from the hosts'

def _collectBlockingStats(self, passes, monitorConn):

    try:
        if (not self.mmsAgent.haveHostDef(self.hostKey)):
            return False
        if (not self.mmsAgent.isValidMonitorConn(self.hostKey, monitorConn)):
            return False
        stats = self._collectStats(passes, monitorConn)
        try:
            stats['hostIpAddr'] = socket.gethostbyname(self.hostKey[0:self.hostKey.find(':')])
        except Exception as e:
            self.mmsAgent.handleOperationFailure(self.hostKey, 'hostIpAddr', e)
        stats['host'] = self.host
        stats['port'] = self.port
        if (not self.mmsAgent.isValidMonitorConn(self.hostKey, monitorConn)):
            return False
        self.mmsAgent.setHostState(self.hostKey, 'mongoBlocking', stats)
        return True
    except Exception as e:
        self.logger.error(((('Problem    collecting    blocking    data    from    (check    if    it    is    up    and    DNS):    ' + self.hostKey) + '    -    exception:    ') + traceback.format_exc(e)))
        return False
