Custom script output not recognized

For anybody with the same newbee question I found it…

import subprocess, sys

overquota = []
multiline = ''
cmd = ["bash", "/opt/omd/sites/mysite/custom/vcenter/get_data.sh"]
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
for line in proc.stdout:
    data = line.decode("utf-8")
    if '/' in data:
        columns = (data.replace("%","")).split()
        if int(columns[4]) > 80:
            overquota.append("Mountpoint " + columns[5] + " is " + columns[4] + "% full")
if len(overquota) > 0:
    for i in range(len(overquota)):
        multiline = multiline + ('\n' + overquota[i])
    print('Server free space error! ' + multiline)
    sys.exit(2)
else:
    print('Server free space normal.')
    sys.exit(0)