def status(self, env):
    from params import status_params
    env.set_params(status_params)
    cmd = format('curl --max-time 3 {hostname}:{metron_rest_port}')
    try:
        get_user_call_output(cmd, user=status_params.metron_user)
    except ExecutionFailed:
        raise ComponentIsNotRunning()
def status(self, env):
    from params import status_params
    env.set_params(status_params)
    cmd = format('curl --max-time 3 {hostname}:{metron_rest_port}')
    try:
        get_user_call_output(cmd, user=status_params.metron_user)
    except ExecutionFailed:
        raise ComponentIsNotRunning()