'Load the export <section> configuration in the Glances configuration file.
:param section: name of the export section to load
:param mandatories: a list of mandatories parameters to load
:param options: a list of optionnals parameters to load
:returns: Boolean -- True if section is found'

def load_conf(self, section, mandatories=['host', 'port'], options=None):

    options = (options or [])
    if (self.config is None):
        return False
    try:
        for opt in mandatories:
            setattr(self, opt, self.config.get_value(section, opt))
    except NoSectionError:
        logger.critical('No    {}    configuration    found'.format(section))
        return False
    except NoOptionError as e:
        logger.critical('Error    in    the    {}    configuration    ({})'.format(section, e))
        return False
    for opt in options:
        try:
            setattr(self, opt, self.config.get_value(section, opt))
        except NoOptionError:
            pass
    logger.debug('Load    {}    from    the    Glances    configuration    file'.format(section))
    logger.debug('{}    parameters:    {}'.format(section, {opt: getattr(self, opt) for opt in (mandatories + options)}))
    return True
