filename = 'zabbix.conf'with open(filename, 'r') as fr: for line in fr: if line[:7]=='Server=': print(line[7:])