'Return the alert status relative to the port scan return value.'

def get_ports_alert(self, port, header='', log=False):

    if (port['status'] is None):
        return 'CAREFUL'
    elif (port['status'] == 0):
        return 'CRITICAL'
    elif (isinstance(port['status'], (float, int)) and (port['rtt_warning'] is not None) and (port['status'] > port['rtt_warning'])):
        return 'WARNING'
    return 'OK'
