zabbix.py
def read_config(config_file, section):
    """Read a zabbix-matrix config file.

    :param config_file: config file to read
    :type config_file: str
    :param section: section to read from the config file
    :type section: str
    :return: config dictionary
    """
    if os.path.isfile(config_file) is False:
        logging.error('config file "%s" not found', config_file)

    config = configparser.ConfigParser()
    config.read(config_file)
    return {key: value for key, value in config[section].items()}
Read a zabbix-matrix config file.

    :param config_file: config file to read
    :type config_file: str
    :param section: section to read from the config file
    :type section: str
    :return: config dictionary
    
Read a zabbix-matrix config file.
Read a zabbix - matrix config file .
def read_config(config_file, section):
    if os.path.isfile(config_file) is False:
        logging.error('config file "%s" not found', config_file)
    config = configparser.ConfigParser()
    config.read(config_file)
    return {key: value for key, value in config[section].items()}
def read_config ( config_file , section ) : if os . path . isfile ( config_file ) is False : logging . error ( 'config file "%s" not found' , config_file ) config = configparser . ConfigParser ( ) config . read ( config_file ) return { key : value for key , value in config [ section ] . items ( ) }
Read a zabbix-matrix config file.
Read a zabbix - matrix config file .
"""Read a zabbix-matrix config file.

    :param config_file: config file to read
    :type config_file: str
    :param section: section to read from the config file
    :type section: str
    :return: config dictionary
    """
None
config_file
config file to read
config file to read
section
section to read from the config file
section to read from the config file