def service_status(hostname=None, service=None, **kwargs):

    if not hostname:
        raise CommandExecutionError('Missing hostname parameter')

    if not service:
        raise CommandExecutionError('Missing service parameter')

    target = 'service'
    numeric = kwargs.get('numeric')
    data = _status_query(target, hostname, service=service, enumerate=numeric)

    ret = {'result': data['result']}
    if ret['result']:
        ret['status'] = data.get('json_data', {}).get('data', {}).get(target, {}).get('status',
                                                                                      not numeric and 'Unknown' or 2)
    else:
        ret['error'] = data['error']
    return ret
Set the cursor to a specific `line` and `column`.
dataset/ETHPy150Open saltstack/salt/salt/modules/nagios_rpc.py/service_status--crossover with--dataset/ETHPy150Open jonathanslenders/pymux/pymux/screen.py/BetterScreen.cursor_position