

def check_process_exists(name):
    processes = filter((lambda p: check_process_name(name, p)), psutil.process_iter())
    if (not processes):
        critical(('%s is not running' % name))
    ok(('%s is working.' % name))

dataset/ETHPy150Open openstack/monitoring-for-openstack/oschecks/utils.py check_process_exists/original