def compileStatus(lOutput, iWarning, iCritical, sFilesystem):
    """
    compiles OK/WARNING/CRITICAL/UNKNOWN status
    gets:
     lOutput  : list of dicts for each Disk
     iWarning   : warning threshold
     iCritical  : critical threshold
     sFilesystem: filesystem which to compare iWarning and iCritical against
    returns:
     OK/WARNING/CRITICAL/UNKNOWN
    """
    for dPartition in lOutput:
        if sFilesystem == dPartition['sName'] or sFilesystem == dPartition['sMountpoint']:
            if dPartition['iPercent'] >= iCritical: 
                return('CRITICAL')
            elif dPartition['iPercent'] >= iWarning: 
                return('WARNING')
            elif dPartition['iPercent'] < iCritical and dPartition['iPercent'] < iWarning:
                return('OK')
            else:
                return('UNKNOWN')